linux/fs
ctree.h File Reference
#include <linux/mm.h>
#include <linux/sched/signal.h>
#include <linux/highmem.h>
#include <linux/fs.h>
#include <linux/rwsem.h>
#include <linux/semaphore.h>
#include <linux/completion.h>
#include <linux/backing-dev.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/kobject.h>
#include <trace/events/btrfs.h>
#include <asm/kmap_types.h>
#include <linux/pagemap.h>
#include <linux/btrfs.h>
#include <linux/btrfs_tree.h>
#include <linux/workqueue.h>
#include <linux/security.h>
#include <linux/sizes.h>
#include <linux/dynamic_debug.h>
#include <linux/refcount.h>
#include <linux/crc32c.h>
#include "extent_io.h"
#include "extent_map.h"
#include "async-thread.h"
Include dependency graph for ctree.h:

Go to the source code of this file.

Classes

struct  btrfs_mapping_tree
 
struct  btrfs_header
 
struct  btrfs_root_backup
 
struct  btrfs_super_block
 
struct  btrfs_item
 
struct  btrfs_leaf
 
struct  btrfs_key_ptr
 
struct  btrfs_node
 
struct  btrfs_path
 
struct  btrfs_dev_replace
 
struct  raid_kobject
 
struct  btrfs_space_info
 
struct  btrfs_block_rsv
 
struct  btrfs_free_cluster
 
struct  btrfs_caching_control
 
struct  btrfs_io_ctl
 
struct  btrfs_full_stripe_locks_tree
 
struct  btrfs_block_group_cache
 
struct  seq_list
 
struct  btrfs_stripe_hash
 
struct  btrfs_stripe_hash_table
 
struct  btrfs_fs_info
 
struct  btrfs_subvolume_writers
 
struct  btrfs_root
 
struct  btrfs_file_private
 
struct  btrfs_map_token
 
struct  btrfs_delalloc_work
 
struct  reada_control
 

Macros

#define STATIC   static noinline
 
#define BTRFS_MAGIC   0x4D5F53665248425FULL /* ascii _BHRfS_M, no null */
 
#define BTRFS_MAX_MIRRORS   3
 
#define BTRFS_MAX_LEVEL   8
 
#define BTRFS_OLDEST_GENERATION   0ULL
 
#define BTRFS_COMPAT_EXTENT_TREE_V0
 
#define BTRFS_MAX_METADATA_BLOCKSIZE   65536
 
#define BTRFS_NAME_LEN   255
 
#define BTRFS_LINK_MAX   65535U
 
#define BTRFS_EMPTY_DIR_SIZE   0
 
#define BTRFS_IOPRIO_READA   (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0))
 
#define BTRFS_DIRTY_METADATA_THRESH   SZ_32M
 
#define BTRFS_MAX_EXTENT_SIZE   SZ_128M
 
#define BTRFS_FS_STATE_ERROR   0
 
#define BTRFS_FS_STATE_REMOUNTING   1
 
#define BTRFS_FS_STATE_TRANS_ABORTED   2
 
#define BTRFS_FS_STATE_DEV_REPLACING   3
 
#define BTRFS_FS_STATE_DUMMY_FS_INFO   4
 
#define BTRFS_BACKREF_REV_MAX   256
 
#define BTRFS_BACKREF_REV_SHIFT   56
 
#define BTRFS_BACKREF_REV_MASK
 
#define BTRFS_OLD_BACKREF_REV   0
 
#define BTRFS_MIXED_BACKREF_REV   1
 
#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE   2048
 
#define BTRFS_NUM_BACKUP_ROOTS   4
 
#define BTRFS_FEATURE_COMPAT_SUPP   0ULL
 
#define BTRFS_FEATURE_COMPAT_SAFE_SET   0ULL
 
#define BTRFS_FEATURE_COMPAT_SAFE_CLEAR   0ULL
 
#define BTRFS_FEATURE_COMPAT_RO_SUPP
 
#define BTRFS_FEATURE_COMPAT_RO_SAFE_SET   0ULL
 
#define BTRFS_FEATURE_COMPAT_RO_SAFE_CLEAR   0ULL
 
#define BTRFS_FEATURE_INCOMPAT_SUPP
 
#define BTRFS_FEATURE_INCOMPAT_SAFE_SET   (BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF)
 
#define BTRFS_FEATURE_INCOMPAT_SAFE_CLEAR   0ULL
 
#define BTRFS_MAX_EXTENT_ITEM_SIZE(r)
 
#define BTRFS_BLOCK_RSV_GLOBAL   1
 
#define BTRFS_BLOCK_RSV_DELALLOC   2
 
#define BTRFS_BLOCK_RSV_TRANS   3
 
#define BTRFS_BLOCK_RSV_CHUNK   4
 
#define BTRFS_BLOCK_RSV_DELOPS   5
 
#define BTRFS_BLOCK_RSV_EMPTY   6
 
#define BTRFS_BLOCK_RSV_TEMP   7
 
#define CACHING_CTL_WAKE_UP   SZ_2M
 
#define SEQ_LIST_INIT(name)   { .list = LIST_HEAD_INIT((name).list), .seq = 0 }
 
#define SEQ_LAST   ((u64)-1)
 
#define BTRFS_STRIPE_HASH_TABLE_BITS   11
 
#define BTRFS_FS_BARRIER   1
 
#define BTRFS_FS_CLOSING_START   2
 
#define BTRFS_FS_CLOSING_DONE   3
 
#define BTRFS_FS_LOG_RECOVERING   4
 
#define BTRFS_FS_OPEN   5
 
#define BTRFS_FS_QUOTA_ENABLED   6
 
#define BTRFS_FS_UPDATE_UUID_TREE_GEN   9
 
#define BTRFS_FS_CREATING_FREE_SPACE_TREE   10
 
#define BTRFS_FS_BTREE_ERR   11
 
#define BTRFS_FS_LOG1_ERR   12
 
#define BTRFS_FS_LOG2_ERR   13
 
#define BTRFS_FS_QUOTA_OVERRIDE   14
 
#define BTRFS_FS_FROZEN   15
 
#define BTRFS_FS_EXCL_OP   16
 
#define BTRFS_FS_NEED_ASYNC_COMMIT   17
 
#define BTRFS_ROOT_IN_TRANS_SETUP   0
 
#define BTRFS_ROOT_REF_COWS   1
 
#define BTRFS_ROOT_TRACK_DIRTY   2
 
#define BTRFS_ROOT_IN_RADIX   3
 
#define BTRFS_ROOT_ORPHAN_ITEM_INSERTED   4
 
#define BTRFS_ROOT_DEFRAG_RUNNING   5
 
#define BTRFS_ROOT_FORCE_COW   6
 
#define BTRFS_ROOT_MULTI_LOG_TASKS   7
 
#define BTRFS_ROOT_DIRTY   8
 
#define BTRFS_LEAF_DATA_OFFSET   offsetof(struct btrfs_leaf, items)
 
#define BTRFS_FILE_EXTENT_INLINE_DATA_START   (offsetof(struct btrfs_file_extent_item, disk_bytenr))
 
#define BTRFS_MOUNT_NODATASUM   (1 << 0)
 
#define BTRFS_MOUNT_NODATACOW   (1 << 1)
 
#define BTRFS_MOUNT_NOBARRIER   (1 << 2)
 
#define BTRFS_MOUNT_SSD   (1 << 3)
 
#define BTRFS_MOUNT_DEGRADED   (1 << 4)
 
#define BTRFS_MOUNT_COMPRESS   (1 << 5)
 
#define BTRFS_MOUNT_NOTREELOG   (1 << 6)
 
#define BTRFS_MOUNT_FLUSHONCOMMIT   (1 << 7)
 
#define BTRFS_MOUNT_SSD_SPREAD   (1 << 8)
 
#define BTRFS_MOUNT_NOSSD   (1 << 9)
 
#define BTRFS_MOUNT_DISCARD   (1 << 10)
 
#define BTRFS_MOUNT_FORCE_COMPRESS   (1 << 11)
 
#define BTRFS_MOUNT_SPACE_CACHE   (1 << 12)
 
#define BTRFS_MOUNT_CLEAR_CACHE   (1 << 13)
 
#define BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED   (1 << 14)
 
#define BTRFS_MOUNT_ENOSPC_DEBUG   (1 << 15)
 
#define BTRFS_MOUNT_AUTO_DEFRAG   (1 << 16)
 
#define BTRFS_MOUNT_INODE_MAP_CACHE   (1 << 17)
 
#define BTRFS_MOUNT_USEBACKUPROOT   (1 << 18)
 
#define BTRFS_MOUNT_SKIP_BALANCE   (1 << 19)
 
#define BTRFS_MOUNT_CHECK_INTEGRITY   (1 << 20)
 
#define BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA   (1 << 21)
 
#define BTRFS_MOUNT_PANIC_ON_FATAL_ERROR   (1 << 22)
 
#define BTRFS_MOUNT_RESCAN_UUID_TREE   (1 << 23)
 
#define BTRFS_MOUNT_FRAGMENT_DATA   (1 << 24)
 
#define BTRFS_MOUNT_FRAGMENT_METADATA   (1 << 25)
 
#define BTRFS_MOUNT_FREE_SPACE_TREE   (1 << 26)
 
#define BTRFS_MOUNT_NOLOGREPLAY   (1 << 27)
 
#define BTRFS_MOUNT_REF_VERIFY   (1 << 28)
 
#define BTRFS_DEFAULT_COMMIT_INTERVAL   (30)
 
#define BTRFS_DEFAULT_MAX_INLINE   (2048)
 
#define btrfs_clear_opt(o, opt)   ((o) &= ~BTRFS_MOUNT_##opt)
 
#define btrfs_set_opt(o, opt)   ((o) |= BTRFS_MOUNT_##opt)
 
#define btrfs_raw_test_opt(o, opt)   ((o) & BTRFS_MOUNT_##opt)
 
#define btrfs_test_opt(fs_info, opt)
 
#define btrfs_set_and_info(fs_info, opt, fmt, args...)
 
#define btrfs_clear_and_info(fs_info, opt, fmt, args...)
 
#define BTRFS_PENDING_SET_INODE_MAP_CACHE   (0)
 
#define BTRFS_PENDING_CLEAR_INODE_MAP_CACHE   (1)
 
#define BTRFS_PENDING_COMMIT   (2)
 
#define btrfs_test_pending(info, opt)   test_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)
 
#define btrfs_set_pending(info, opt)   set_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)
 
#define btrfs_clear_pending(info, opt)   clear_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)
 
#define btrfs_set_pending_and_info(info, opt, fmt, args...)
 
#define btrfs_clear_pending_and_info(info, opt, fmt, args...)
 
#define BTRFS_INODE_NODATASUM   (1 << 0)
 
#define BTRFS_INODE_NODATACOW   (1 << 1)
 
#define BTRFS_INODE_READONLY   (1 << 2)
 
#define BTRFS_INODE_NOCOMPRESS   (1 << 3)
 
#define BTRFS_INODE_PREALLOC   (1 << 4)
 
#define BTRFS_INODE_SYNC   (1 << 5)
 
#define BTRFS_INODE_IMMUTABLE   (1 << 6)
 
#define BTRFS_INODE_APPEND   (1 << 7)
 
#define BTRFS_INODE_NODUMP   (1 << 8)
 
#define BTRFS_INODE_NOATIME   (1 << 9)
 
#define BTRFS_INODE_DIRSYNC   (1 << 10)
 
#define BTRFS_INODE_COMPRESS   (1 << 11)
 
#define BTRFS_INODE_ROOT_ITEM_INIT   (1 << 31)
 
#define BTRFS_BYTES_TO_BLKS(fs_info, bytes)   ((bytes) >> (fs_info)->sb->s_blocksize_bits)
 
#define le8_to_cpu(v)   (v)
 
#define cpu_to_le8(v)   (v)
 
#define __le8   u8
 
#define read_eb_member(eb, ptr, type, member, result)
 
#define write_eb_member(eb, ptr, type, member, result)
 
#define DECLARE_BTRFS_SETGET_BITS(bits)
 
#define BTRFS_SETGET_FUNCS(name, type, member, bits)
 
#define BTRFS_SETGET_HEADER_FUNCS(name, type, member, bits)
 
#define BTRFS_SETGET_STACK_FUNCS(name, type, member, bits)
 
#define btrfs_item_ptr(leaf, slot, type)
 
#define btrfs_item_ptr_offset(leaf, slot)
 
#define btrfs_printk(fs_info, fmt, args...)   btrfs_no_printk(fs_info, fmt, ##args)
 
#define btrfs_emerg(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_EMERG fmt, ##args)
 
#define btrfs_alert(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_ALERT fmt, ##args)
 
#define btrfs_crit(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_CRIT fmt, ##args)
 
#define btrfs_err(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_ERR fmt, ##args)
 
#define btrfs_warn(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_WARNING fmt, ##args)
 
#define btrfs_notice(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_NOTICE fmt, ##args)
 
#define btrfs_info(fs_info, fmt, args...)   btrfs_printk(fs_info, KERN_INFO fmt, ##args)
 
#define btrfs_emerg_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_EMERG fmt, ##args)
 
#define btrfs_alert_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_ALERT fmt, ##args)
 
#define btrfs_crit_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_CRIT fmt, ##args)
 
#define btrfs_err_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_ERR fmt, ##args)
 
#define btrfs_warn_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_WARNING fmt, ##args)
 
#define btrfs_notice_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_NOTICE fmt, ##args)
 
#define btrfs_info_in_rcu(fs_info, fmt, args...)   btrfs_printk_in_rcu(fs_info, KERN_INFO fmt, ##args)
 
#define btrfs_emerg_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_EMERG fmt, ##args)
 
#define btrfs_alert_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_ALERT fmt, ##args)
 
#define btrfs_crit_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_CRIT fmt, ##args)
 
#define btrfs_err_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_ERR fmt, ##args)
 
#define btrfs_warn_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_WARNING fmt, ##args)
 
#define btrfs_notice_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_NOTICE fmt, ##args)
 
#define btrfs_info_rl_in_rcu(fs_info, fmt, args...)   btrfs_printk_rl_in_rcu(fs_info, KERN_INFO fmt, ##args)
 
#define btrfs_emerg_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_EMERG fmt, ##args)
 
#define btrfs_alert_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_ALERT fmt, ##args)
 
#define btrfs_crit_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_CRIT fmt, ##args)
 
#define btrfs_err_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_ERR fmt, ##args)
 
#define btrfs_warn_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_WARNING fmt, ##args)
 
#define btrfs_notice_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_NOTICE fmt, ##args)
 
#define btrfs_info_rl(fs_info, fmt, args...)   btrfs_printk_ratelimited(fs_info, KERN_INFO fmt, ##args)
 
#define btrfs_debug(fs_info, fmt, args...)   btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
 
#define btrfs_debug_in_rcu(fs_info, fmt, args...)   btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
 
#define btrfs_debug_rl_in_rcu(fs_info, fmt, args...)   btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
 
#define btrfs_debug_rl(fs_info, fmt, args...)   btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)
 
#define btrfs_printk_in_rcu(fs_info, fmt, args...)
 
#define btrfs_printk_ratelimited(fs_info, fmt, args...)
 
#define btrfs_printk_rl_in_rcu(fs_info, fmt, args...)
 
#define ASSERT(expr)   ((void)0)
 
#define btrfs_abort_transaction(trans, errno)
 
#define btrfs_handle_fs_error(fs_info, errno, fmt, args...)
 
#define btrfs_panic(fs_info, errno, fmt, args...)
 
#define btrfs_set_fs_incompat(__fs_info, opt)   __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
 
#define btrfs_clear_fs_incompat(__fs_info, opt)   __btrfs_clear_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
 
#define btrfs_fs_incompat(fs_info, opt)   __btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
 
#define btrfs_set_fs_compat_ro(__fs_info, opt)   __btrfs_set_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)
 
#define btrfs_clear_fs_compat_ro(__fs_info, opt)   __btrfs_clear_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)
 
#define btrfs_fs_compat_ro(fs_info, opt)   __btrfs_fs_compat_ro((fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)
 
#define btrfs_get_acl   NULL
 
#define btrfs_set_acl   NULL
 

Typedefs

typedef int(* btrfs_changed_cb_t) (struct btrfs_path *left_path, struct btrfs_path *right_path, struct btrfs_key *key, enum btrfs_compare_tree_result result, void *ctx)
 

Enumerations

enum  { READA_NONE = 0, READA_BACK, READA_FORWARD }
 
enum  btrfs_caching_type {
  BTRFS_CACHE_NO = 0, BTRFS_CACHE_STARTED = 1, BTRFS_CACHE_FAST = 2, BTRFS_CACHE_FINISHED = 3,
  BTRFS_CACHE_ERROR = 4
}
 
enum  btrfs_disk_cache_state { BTRFS_DC_WRITTEN = 0, BTRFS_DC_ERROR = 1, BTRFS_DC_CLEAR = 2, BTRFS_DC_SETUP = 3 }
 
enum  btrfs_orphan_cleanup_state { ORPHAN_CLEANUP_STARTED = 1, ORPHAN_CLEANUP_DONE = 2 }
 
enum  btrfs_inline_ref_type { BTRFS_REF_TYPE_INVALID = 0, BTRFS_REF_TYPE_BLOCK = 1, BTRFS_REF_TYPE_DATA = 2, BTRFS_REF_TYPE_ANY = 3 }
 
enum  btrfs_reserve_flush_enum { BTRFS_RESERVE_NO_FLUSH, BTRFS_RESERVE_FLUSH_LIMIT, BTRFS_RESERVE_FLUSH_ALL }
 
enum  btrfs_flush_state {
  FLUSH_DELAYED_ITEMS_NR = 1, FLUSH_DELAYED_ITEMS = 2, FLUSH_DELALLOC = 3, FLUSH_DELALLOC_WAIT = 4,
  ALLOC_CHUNK = 5, COMMIT_TRANS = 6
}
 
enum  btrfs_compare_tree_result { BTRFS_COMPARE_TREE_NEW, BTRFS_COMPARE_TREE_DELETED, BTRFS_COMPARE_TREE_CHANGED, BTRFS_COMPARE_TREE_SAME }
 

Functions

static u32 count_max_extents (u64 size)
 
static unsigned long btrfs_chunk_item_size (int num_stripes)
 
struct btrfs_header __attribute__ ((__packed__))
 
void btrfs_init_async_reclaim_work (struct work_struct *work)
 
static struct btrfs_fs_infobtrfs_sb (struct super_block *sb)
 
static u32 btrfs_inode_sectorsize (const struct inode *inode)
 
static u32 BTRFS_LEAF_DATA_SIZE (const struct btrfs_fs_info *info)
 
static u32 BTRFS_MAX_ITEM_SIZE (const struct btrfs_fs_info *info)
 
static u32 BTRFS_NODEPTRS_PER_BLOCK (const struct btrfs_fs_info *info)
 
static u32 BTRFS_MAX_INLINE_DATA_SIZE (const struct btrfs_fs_info *info)
 
static u32 BTRFS_MAX_XATTR_SIZE (const struct btrfs_fs_info *info)
 
static void btrfs_init_map_token (struct btrfs_map_token *token)
 
static u64 btrfs_device_total_bytes (struct extent_buffer *eb, struct btrfs_dev_item *s)
 
static void btrfs_set_device_total_bytes (struct extent_buffer *eb, struct btrfs_dev_item *s, u64 val)
 
 BTRFS_SETGET_FUNCS (device_type, struct btrfs_dev_item, type, 64)
 
 BTRFS_SETGET_FUNCS (device_bytes_used, struct btrfs_dev_item, bytes_used, 64)
 
 BTRFS_SETGET_FUNCS (device_io_align, struct btrfs_dev_item, io_align, 32)
 
 BTRFS_SETGET_FUNCS (device_io_width, struct btrfs_dev_item, io_width, 32)
 
 BTRFS_SETGET_FUNCS (device_start_offset, struct btrfs_dev_item, start_offset, 64)
 
 BTRFS_SETGET_FUNCS (device_sector_size, struct btrfs_dev_item, sector_size, 32)
 
 BTRFS_SETGET_FUNCS (device_id, struct btrfs_dev_item, devid, 64)
 
 BTRFS_SETGET_FUNCS (device_group, struct btrfs_dev_item, dev_group, 32)
 
 BTRFS_SETGET_FUNCS (device_seek_speed, struct btrfs_dev_item, seek_speed, 8)
 
 BTRFS_SETGET_FUNCS (device_bandwidth, struct btrfs_dev_item, bandwidth, 8)
 
 BTRFS_SETGET_FUNCS (device_generation, struct btrfs_dev_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_type, struct btrfs_dev_item, type, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_total_bytes, struct btrfs_dev_item, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_bytes_used, struct btrfs_dev_item, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_io_align, struct btrfs_dev_item, io_align, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_io_width, struct btrfs_dev_item, io_width, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_sector_size, struct btrfs_dev_item, sector_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_id, struct btrfs_dev_item, devid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_group, struct btrfs_dev_item, dev_group, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_seek_speed, struct btrfs_dev_item, seek_speed, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_bandwidth, struct btrfs_dev_item, bandwidth, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_generation, struct btrfs_dev_item, generation, 64)
 
static unsigned long btrfs_device_uuid (struct btrfs_dev_item *d)
 
static unsigned long btrfs_device_fsid (struct btrfs_dev_item *d)
 
 BTRFS_SETGET_FUNCS (chunk_length, struct btrfs_chunk, length, 64)
 
 BTRFS_SETGET_FUNCS (chunk_owner, struct btrfs_chunk, owner, 64)
 
 BTRFS_SETGET_FUNCS (chunk_stripe_len, struct btrfs_chunk, stripe_len, 64)
 
 BTRFS_SETGET_FUNCS (chunk_io_align, struct btrfs_chunk, io_align, 32)
 
 BTRFS_SETGET_FUNCS (chunk_io_width, struct btrfs_chunk, io_width, 32)
 
 BTRFS_SETGET_FUNCS (chunk_sector_size, struct btrfs_chunk, sector_size, 32)
 
 BTRFS_SETGET_FUNCS (chunk_type, struct btrfs_chunk, type, 64)
 
 BTRFS_SETGET_FUNCS (chunk_num_stripes, struct btrfs_chunk, num_stripes, 16)
 
 BTRFS_SETGET_FUNCS (chunk_sub_stripes, struct btrfs_chunk, sub_stripes, 16)
 
 BTRFS_SETGET_FUNCS (stripe_devid, struct btrfs_stripe, devid, 64)
 
 BTRFS_SETGET_FUNCS (stripe_offset, struct btrfs_stripe, offset, 64)
 
static char * btrfs_stripe_dev_uuid (struct btrfs_stripe *s)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_length, struct btrfs_chunk, length, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_owner, struct btrfs_chunk, owner, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_stripe_len, struct btrfs_chunk, stripe_len, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_io_align, struct btrfs_chunk, io_align, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_io_width, struct btrfs_chunk, io_width, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_sector_size, struct btrfs_chunk, sector_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_type, struct btrfs_chunk, type, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_num_stripes, struct btrfs_chunk, num_stripes, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_sub_stripes, struct btrfs_chunk, sub_stripes, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_stripe_devid, struct btrfs_stripe, devid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_stripe_offset, struct btrfs_stripe, offset, 64)
 
static struct btrfs_stripe * btrfs_stripe_nr (struct btrfs_chunk *c, int nr)
 
static char * btrfs_stripe_dev_uuid_nr (struct btrfs_chunk *c, int nr)
 
static u64 btrfs_stripe_offset_nr (struct extent_buffer *eb, struct btrfs_chunk *c, int nr)
 
static u64 btrfs_stripe_devid_nr (struct extent_buffer *eb, struct btrfs_chunk *c, int nr)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_used, struct btrfs_block_group_item, used, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_used, struct btrfs_block_group_item, used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_chunk_objectid, struct btrfs_block_group_item, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_chunk_objectid, struct btrfs_block_group_item, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_flags, struct btrfs_block_group_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_flags, struct btrfs_block_group_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (free_space_extent_count, struct btrfs_free_space_info, extent_count, 32)
 
 BTRFS_SETGET_FUNCS (free_space_flags, struct btrfs_free_space_info, flags, 32)
 
 BTRFS_SETGET_FUNCS (inode_ref_name_len, struct btrfs_inode_ref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (inode_ref_index, struct btrfs_inode_ref, index, 64)
 
 BTRFS_SETGET_FUNCS (inode_extref_parent, struct btrfs_inode_extref, parent_objectid, 64)
 
 BTRFS_SETGET_FUNCS (inode_extref_name_len, struct btrfs_inode_extref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (inode_extref_index, struct btrfs_inode_extref, index, 64)
 
 BTRFS_SETGET_FUNCS (inode_generation, struct btrfs_inode_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (inode_sequence, struct btrfs_inode_item, sequence, 64)
 
 BTRFS_SETGET_FUNCS (inode_transid, struct btrfs_inode_item, transid, 64)
 
 BTRFS_SETGET_FUNCS (inode_size, struct btrfs_inode_item, size, 64)
 
 BTRFS_SETGET_FUNCS (inode_nbytes, struct btrfs_inode_item, nbytes, 64)
 
 BTRFS_SETGET_FUNCS (inode_block_group, struct btrfs_inode_item, block_group, 64)
 
 BTRFS_SETGET_FUNCS (inode_nlink, struct btrfs_inode_item, nlink, 32)
 
 BTRFS_SETGET_FUNCS (inode_uid, struct btrfs_inode_item, uid, 32)
 
 BTRFS_SETGET_FUNCS (inode_gid, struct btrfs_inode_item, gid, 32)
 
 BTRFS_SETGET_FUNCS (inode_mode, struct btrfs_inode_item, mode, 32)
 
 BTRFS_SETGET_FUNCS (inode_rdev, struct btrfs_inode_item, rdev, 64)
 
 BTRFS_SETGET_FUNCS (inode_flags, struct btrfs_inode_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_generation, struct btrfs_inode_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_sequence, struct btrfs_inode_item, sequence, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_transid, struct btrfs_inode_item, transid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_size, struct btrfs_inode_item, size, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_nbytes, struct btrfs_inode_item, nbytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_block_group, struct btrfs_inode_item, block_group, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_nlink, struct btrfs_inode_item, nlink, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_uid, struct btrfs_inode_item, uid, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_gid, struct btrfs_inode_item, gid, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_mode, struct btrfs_inode_item, mode, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_rdev, struct btrfs_inode_item, rdev, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_flags, struct btrfs_inode_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (timespec_sec, struct btrfs_timespec, sec, 64)
 
 BTRFS_SETGET_FUNCS (timespec_nsec, struct btrfs_timespec, nsec, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_timespec_sec, struct btrfs_timespec, sec, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_timespec_nsec, struct btrfs_timespec, nsec, 32)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_tree, struct btrfs_dev_extent, chunk_tree, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_objectid, struct btrfs_dev_extent, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_offset, struct btrfs_dev_extent, chunk_offset, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_length, struct btrfs_dev_extent, length, 64)
 
static unsigned long btrfs_dev_extent_chunk_tree_uuid (struct btrfs_dev_extent *dev)
 
 BTRFS_SETGET_FUNCS (extent_refs, struct btrfs_extent_item, refs, 64)
 
 BTRFS_SETGET_FUNCS (extent_generation, struct btrfs_extent_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (extent_flags, struct btrfs_extent_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (extent_refs_v0, struct btrfs_extent_item_v0, refs, 32)
 
 BTRFS_SETGET_FUNCS (tree_block_level, struct btrfs_tree_block_info, level, 8)
 
static void btrfs_tree_block_key (struct extent_buffer *eb, struct btrfs_tree_block_info *item, struct btrfs_disk_key *key)
 
static void btrfs_set_tree_block_key (struct extent_buffer *eb, struct btrfs_tree_block_info *item, struct btrfs_disk_key *key)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_root, struct btrfs_extent_data_ref, root, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_objectid, struct btrfs_extent_data_ref, objectid, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_offset, struct btrfs_extent_data_ref, offset, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_count, struct btrfs_extent_data_ref, count, 32)
 
 BTRFS_SETGET_FUNCS (shared_data_ref_count, struct btrfs_shared_data_ref, count, 32)
 
 BTRFS_SETGET_FUNCS (extent_inline_ref_type, struct btrfs_extent_inline_ref, type, 8)
 
 BTRFS_SETGET_FUNCS (extent_inline_ref_offset, struct btrfs_extent_inline_ref, offset, 64)
 
static u32 btrfs_extent_inline_ref_size (int type)
 
 BTRFS_SETGET_FUNCS (ref_root_v0, struct btrfs_extent_ref_v0, root, 64)
 
 BTRFS_SETGET_FUNCS (ref_generation_v0, struct btrfs_extent_ref_v0, generation, 64)
 
 BTRFS_SETGET_FUNCS (ref_objectid_v0, struct btrfs_extent_ref_v0, objectid, 64)
 
 BTRFS_SETGET_FUNCS (ref_count_v0, struct btrfs_extent_ref_v0, count, 32)
 
 BTRFS_SETGET_FUNCS (key_blockptr, struct btrfs_key_ptr, blockptr, 64)
 
 BTRFS_SETGET_FUNCS (key_generation, struct btrfs_key_ptr, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_key_blockptr, struct btrfs_key_ptr, blockptr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_key_generation, struct btrfs_key_ptr, generation, 64)
 
static u64 btrfs_node_blockptr (struct extent_buffer *eb, int nr)
 
static void btrfs_set_node_blockptr (struct extent_buffer *eb, int nr, u64 val)
 
static u64 btrfs_node_ptr_generation (struct extent_buffer *eb, int nr)
 
static void btrfs_set_node_ptr_generation (struct extent_buffer *eb, int nr, u64 val)
 
static unsigned long btrfs_node_key_ptr_offset (int nr)
 
void btrfs_node_key (const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr)
 
static void btrfs_set_node_key (struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr)
 
 BTRFS_SETGET_FUNCS (item_offset, struct btrfs_item, offset, 32)
 
 BTRFS_SETGET_FUNCS (item_size, struct btrfs_item, size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_item_offset, struct btrfs_item, offset, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_item_size, struct btrfs_item, size, 32)
 
static unsigned long btrfs_item_nr_offset (int nr)
 
static struct btrfs_itembtrfs_item_nr (int nr)
 
static u32 btrfs_item_end (const struct extent_buffer *eb, struct btrfs_item *item)
 
static u32 btrfs_item_end_nr (const struct extent_buffer *eb, int nr)
 
static u32 btrfs_item_offset_nr (const struct extent_buffer *eb, int nr)
 
static u32 btrfs_item_size_nr (const struct extent_buffer *eb, int nr)
 
static void btrfs_item_key (const struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr)
 
static void btrfs_set_item_key (struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr)
 
 BTRFS_SETGET_FUNCS (dir_log_end, struct btrfs_dir_log_item, end, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_dirid, struct btrfs_root_ref, dirid, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_sequence, struct btrfs_root_ref, sequence, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_name_len, struct btrfs_root_ref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_data_len, struct btrfs_dir_item, data_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_type, struct btrfs_dir_item, type, 8)
 
 BTRFS_SETGET_FUNCS (dir_name_len, struct btrfs_dir_item, name_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_transid, struct btrfs_dir_item, transid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dir_type, struct btrfs_dir_item, type, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dir_data_len, struct btrfs_dir_item, data_len, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dir_name_len, struct btrfs_dir_item, name_len, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dir_transid, struct btrfs_dir_item, transid, 64)
 
static void btrfs_dir_item_key (const struct extent_buffer *eb, const struct btrfs_dir_item *item, struct btrfs_disk_key *key)
 
static void btrfs_set_dir_item_key (struct extent_buffer *eb, struct btrfs_dir_item *item, const struct btrfs_disk_key *key)
 
 BTRFS_SETGET_FUNCS (free_space_entries, struct btrfs_free_space_header, num_entries, 64)
 
 BTRFS_SETGET_FUNCS (free_space_bitmaps, struct btrfs_free_space_header, num_bitmaps, 64)
 
 BTRFS_SETGET_FUNCS (free_space_generation, struct btrfs_free_space_header, generation, 64)
 
static void btrfs_free_space_key (const struct extent_buffer *eb, const struct btrfs_free_space_header *h, struct btrfs_disk_key *key)
 
static void btrfs_set_free_space_key (struct extent_buffer *eb, struct btrfs_free_space_header *h, const struct btrfs_disk_key *key)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_objectid, struct btrfs_disk_key, objectid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_offset, struct btrfs_disk_key, offset, 64)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_type, struct btrfs_disk_key, type, 8)
 
static void btrfs_disk_key_to_cpu (struct btrfs_key *cpu, const struct btrfs_disk_key *disk)
 
static void btrfs_cpu_key_to_disk (struct btrfs_disk_key *disk, const struct btrfs_key *cpu)
 
static void btrfs_node_key_to_cpu (const struct extent_buffer *eb, struct btrfs_key *key, int nr)
 
static void btrfs_item_key_to_cpu (const struct extent_buffer *eb, struct btrfs_key *key, int nr)
 
static void btrfs_dir_item_key_to_cpu (const struct extent_buffer *eb, const struct btrfs_dir_item *item, struct btrfs_key *key)
 
static u8 btrfs_key_type (const struct btrfs_key *key)
 
static void btrfs_set_key_type (struct btrfs_key *key, u8 val)
 
 BTRFS_SETGET_HEADER_FUNCS (header_bytenr, struct btrfs_header, bytenr, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_generation, struct btrfs_header, generation, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_owner, struct btrfs_header, owner, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_nritems, struct btrfs_header, nritems, 32)
 
 BTRFS_SETGET_HEADER_FUNCS (header_flags, struct btrfs_header, flags, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_level, struct btrfs_header, level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_header_generation, struct btrfs_header, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_header_owner, struct btrfs_header, owner, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_header_nritems, struct btrfs_header, nritems, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_header_bytenr, struct btrfs_header, bytenr, 64)
 
static int btrfs_header_flag (const struct extent_buffer *eb, u64 flag)
 
static int btrfs_set_header_flag (struct extent_buffer *eb, u64 flag)
 
static int btrfs_clear_header_flag (struct extent_buffer *eb, u64 flag)
 
static int btrfs_header_backref_rev (const struct extent_buffer *eb)
 
static void btrfs_set_header_backref_rev (struct extent_buffer *eb, int rev)
 
static unsigned long btrfs_header_fsid (void)
 
static unsigned long btrfs_header_chunk_tree_uuid (const struct extent_buffer *eb)
 
static int btrfs_is_leaf (const struct extent_buffer *eb)
 
 BTRFS_SETGET_FUNCS (disk_root_generation, struct btrfs_root_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (disk_root_refs, struct btrfs_root_item, refs, 32)
 
 BTRFS_SETGET_FUNCS (disk_root_bytenr, struct btrfs_root_item, bytenr, 64)
 
 BTRFS_SETGET_FUNCS (disk_root_level, struct btrfs_root_item, level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (root_generation, struct btrfs_root_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_bytenr, struct btrfs_root_item, bytenr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_level, struct btrfs_root_item, level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (root_dirid, struct btrfs_root_item, root_dirid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_refs, struct btrfs_root_item, refs, 32)
 
 BTRFS_SETGET_STACK_FUNCS (root_flags, struct btrfs_root_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_used, struct btrfs_root_item, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_limit, struct btrfs_root_item, byte_limit, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_last_snapshot, struct btrfs_root_item, last_snapshot, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_generation_v2, struct btrfs_root_item, generation_v2, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_ctransid, struct btrfs_root_item, ctransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_otransid, struct btrfs_root_item, otransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_stransid, struct btrfs_root_item, stransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_rtransid, struct btrfs_root_item, rtransid, 64)
 
static bool btrfs_root_readonly (const struct btrfs_root *root)
 
static bool btrfs_root_dead (const struct btrfs_root *root)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root, struct btrfs_root_backup, tree_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root_gen, struct btrfs_root_backup, tree_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root_level, struct btrfs_root_backup, tree_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root, struct btrfs_root_backup, chunk_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root_gen, struct btrfs_root_backup, chunk_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root_level, struct btrfs_root_backup, chunk_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root, struct btrfs_root_backup, extent_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root_gen, struct btrfs_root_backup, extent_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root_level, struct btrfs_root_backup, extent_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root, struct btrfs_root_backup, fs_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root_gen, struct btrfs_root_backup, fs_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root_level, struct btrfs_root_backup, fs_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root, struct btrfs_root_backup, dev_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root_gen, struct btrfs_root_backup, dev_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root_level, struct btrfs_root_backup, dev_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root, struct btrfs_root_backup, csum_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root_gen, struct btrfs_root_backup, csum_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root_level, struct btrfs_root_backup, csum_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_total_bytes, struct btrfs_root_backup, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_bytes_used, struct btrfs_root_backup, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_num_devices, struct btrfs_root_backup, num_devices, 64)
 
 BTRFS_SETGET_FUNCS (balance_flags, struct btrfs_balance_item, flags, 64)
 
static void btrfs_balance_data (const struct extent_buffer *eb, const struct btrfs_balance_item *bi, struct btrfs_disk_balance_args *ba)
 
static void btrfs_set_balance_data (struct extent_buffer *eb, struct btrfs_balance_item *bi, const struct btrfs_disk_balance_args *ba)
 
static void btrfs_balance_meta (const struct extent_buffer *eb, const struct btrfs_balance_item *bi, struct btrfs_disk_balance_args *ba)
 
static void btrfs_set_balance_meta (struct extent_buffer *eb, struct btrfs_balance_item *bi, const struct btrfs_disk_balance_args *ba)
 
static void btrfs_balance_sys (const struct extent_buffer *eb, const struct btrfs_balance_item *bi, struct btrfs_disk_balance_args *ba)
 
static void btrfs_set_balance_sys (struct extent_buffer *eb, struct btrfs_balance_item *bi, const struct btrfs_disk_balance_args *ba)
 
static void btrfs_disk_balance_args_to_cpu (struct btrfs_balance_args *cpu, const struct btrfs_disk_balance_args *disk)
 
static void btrfs_cpu_balance_args_to_disk (struct btrfs_disk_balance_args *disk, const struct btrfs_balance_args *cpu)
 
 BTRFS_SETGET_STACK_FUNCS (super_bytenr, struct btrfs_super_block, bytenr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_flags, struct btrfs_super_block, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_generation, struct btrfs_super_block, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_root, struct btrfs_super_block, root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_sys_array_size, struct btrfs_super_block, sys_chunk_array_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root_generation, struct btrfs_super_block, chunk_root_generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_root_level, struct btrfs_super_block, root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root, struct btrfs_super_block, chunk_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root_level, struct btrfs_super_block, chunk_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root, struct btrfs_super_block, log_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root_transid, struct btrfs_super_block, log_root_transid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root_level, struct btrfs_super_block, log_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_total_bytes, struct btrfs_super_block, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_bytes_used, struct btrfs_super_block, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_sectorsize, struct btrfs_super_block, sectorsize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_nodesize, struct btrfs_super_block, nodesize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_stripesize, struct btrfs_super_block, stripesize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_root_dir, struct btrfs_super_block, root_dir_objectid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_num_devices, struct btrfs_super_block, num_devices, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_compat_flags, struct btrfs_super_block, compat_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_compat_ro_flags, struct btrfs_super_block, compat_ro_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_incompat_flags, struct btrfs_super_block, incompat_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_csum_type, struct btrfs_super_block, csum_type, 16)
 
 BTRFS_SETGET_STACK_FUNCS (super_cache_generation, struct btrfs_super_block, cache_generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_magic, struct btrfs_super_block, magic, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_uuid_tree_generation, struct btrfs_super_block, uuid_tree_generation, 64)
 
static int btrfs_super_csum_size (const struct btrfs_super_block *s)
 
static unsigned int leaf_data_end (const struct btrfs_fs_info *fs_info, const struct extent_buffer *leaf)
 
 BTRFS_SETGET_FUNCS (file_extent_type, struct btrfs_file_extent_item, type, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_disk_bytenr, struct btrfs_file_extent_item, disk_bytenr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_offset, struct btrfs_file_extent_item, offset, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_generation, struct btrfs_file_extent_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_num_bytes, struct btrfs_file_extent_item, num_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_disk_num_bytes, struct btrfs_file_extent_item, disk_num_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_file_extent_compression, struct btrfs_file_extent_item, compression, 8)
 
static unsigned long btrfs_file_extent_inline_start (const struct btrfs_file_extent_item *e)
 
static u32 btrfs_file_extent_calc_inline_size (u32 datasize)
 
 BTRFS_SETGET_FUNCS (file_extent_disk_bytenr, struct btrfs_file_extent_item, disk_bytenr, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_generation, struct btrfs_file_extent_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_disk_num_bytes, struct btrfs_file_extent_item, disk_num_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_offset, struct btrfs_file_extent_item, offset, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_num_bytes, struct btrfs_file_extent_item, num_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_ram_bytes, struct btrfs_file_extent_item, ram_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_compression, struct btrfs_file_extent_item, compression, 8)
 
 BTRFS_SETGET_FUNCS (file_extent_encryption, struct btrfs_file_extent_item, encryption, 8)
 
 BTRFS_SETGET_FUNCS (file_extent_other_encoding, struct btrfs_file_extent_item, other_encoding, 16)
 
static u32 btrfs_file_extent_inline_item_len (const struct extent_buffer *eb, struct btrfs_item *e)
 
static u32 btrfs_file_extent_inline_len (const struct extent_buffer *eb, int slot, const struct btrfs_file_extent_item *fi)
 
static u64 btrfs_dev_stats_value (const struct extent_buffer *eb, const struct btrfs_dev_stats_item *ptr, int index)
 
static void btrfs_set_dev_stats_value (struct extent_buffer *eb, struct btrfs_dev_stats_item *ptr, int index, u64 val)
 
 BTRFS_SETGET_FUNCS (qgroup_status_generation, struct btrfs_qgroup_status_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_version, struct btrfs_qgroup_status_item, version, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_flags, struct btrfs_qgroup_status_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_rescan, struct btrfs_qgroup_status_item, rescan, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_generation, struct btrfs_qgroup_info_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_rfer, struct btrfs_qgroup_info_item, rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_rfer_cmpr, struct btrfs_qgroup_info_item, rfer_cmpr, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_excl, struct btrfs_qgroup_info_item, excl, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_excl_cmpr, struct btrfs_qgroup_info_item, excl_cmpr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_generation, struct btrfs_qgroup_info_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_rfer, struct btrfs_qgroup_info_item, rfer, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_rfer_cmpr, struct btrfs_qgroup_info_item, rfer_cmpr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_excl, struct btrfs_qgroup_info_item, excl, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_excl_cmpr, struct btrfs_qgroup_info_item, excl_cmpr, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_flags, struct btrfs_qgroup_limit_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_max_rfer, struct btrfs_qgroup_limit_item, max_rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_max_excl, struct btrfs_qgroup_limit_item, max_excl, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_rsv_rfer, struct btrfs_qgroup_limit_item, rsv_rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_rsv_excl, struct btrfs_qgroup_limit_item, rsv_excl, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_src_devid, struct btrfs_dev_replace_item, src_devid, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_cont_reading_from_srcdev_mode, struct btrfs_dev_replace_item, cont_reading_from_srcdev_mode, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_replace_state, struct btrfs_dev_replace_item, replace_state, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_time_started, struct btrfs_dev_replace_item, time_started, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_time_stopped, struct btrfs_dev_replace_item, time_stopped, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_num_write_errors, struct btrfs_dev_replace_item, num_write_errors, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_num_uncorrectable_read_errors, struct btrfs_dev_replace_item, num_uncorrectable_read_errors, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_cursor_left, struct btrfs_dev_replace_item, cursor_left, 64)
 
 BTRFS_SETGET_FUNCS (dev_replace_cursor_right, struct btrfs_dev_replace_item, cursor_right, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_src_devid, struct btrfs_dev_replace_item, src_devid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_cont_reading_from_srcdev_mode, struct btrfs_dev_replace_item, cont_reading_from_srcdev_mode, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_replace_state, struct btrfs_dev_replace_item, replace_state, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_time_started, struct btrfs_dev_replace_item, time_started, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_time_stopped, struct btrfs_dev_replace_item, time_stopped, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_num_write_errors, struct btrfs_dev_replace_item, num_write_errors, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_num_uncorrectable_read_errors, struct btrfs_dev_replace_item, num_uncorrectable_read_errors, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_cursor_left, struct btrfs_dev_replace_item, cursor_left, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_dev_replace_cursor_right, struct btrfs_dev_replace_item, cursor_right, 64)
 
static u64 btrfs_name_hash (const char *name, int len)
 
static u64 btrfs_extref_hash (u64 parent_objectid, const char *name, int len)
 
static bool btrfs_mixed_space_info (struct btrfs_space_info *space_info)
 
static gfp_t btrfs_alloc_write_mask (struct address_space *mapping)
 
int btrfs_get_extent_inline_ref_type (const struct extent_buffer *eb, struct btrfs_extent_inline_ref *iref, enum btrfs_inline_ref_type is_data)
 
u64 btrfs_csum_bytes_to_leaves (struct btrfs_fs_info *fs_info, u64 csum_bytes)
 
static u64 btrfs_calc_trans_metadata_size (struct btrfs_fs_info *fs_info, unsigned num_items)
 
static u64 btrfs_calc_trunc_metadata_size (struct btrfs_fs_info *fs_info, unsigned num_items)
 
int btrfs_should_throttle_delayed_refs (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_check_space_for_delayed_refs (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
void btrfs_dec_block_group_reservations (struct btrfs_fs_info *fs_info, const u64 start)
 
void btrfs_wait_block_group_reservations (struct btrfs_block_group_cache *bg)
 
bool btrfs_inc_nocow_writers (struct btrfs_fs_info *fs_info, u64 bytenr)
 
void btrfs_dec_nocow_writers (struct btrfs_fs_info *fs_info, u64 bytenr)
 
void btrfs_wait_nocow_writers (struct btrfs_block_group_cache *bg)
 
void btrfs_put_block_group (struct btrfs_block_group_cache *cache)
 
int btrfs_run_delayed_refs (struct btrfs_trans_handle *trans, unsigned long count)
 
int btrfs_async_run_delayed_refs (struct btrfs_fs_info *fs_info, unsigned long count, u64 transid, int wait)
 
int btrfs_lookup_data_extent (struct btrfs_fs_info *fs_info, u64 start, u64 len)
 
int btrfs_lookup_extent_info (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytenr, u64 offset, int metadata, u64 *refs, u64 *flags)
 
int btrfs_pin_extent (struct btrfs_fs_info *fs_info, u64 bytenr, u64 num, int reserved)
 
int btrfs_pin_extent_for_log_replay (struct btrfs_fs_info *fs_info, u64 bytenr, u64 num_bytes)
 
int btrfs_exclude_logged_extents (struct btrfs_fs_info *fs_info, struct extent_buffer *eb)
 
int btrfs_cross_ref_exist (struct btrfs_root *root, u64 objectid, u64 offset, u64 bytenr)
 
struct btrfs_block_group_cachebtrfs_lookup_block_group (struct btrfs_fs_info *info, u64 bytenr)
 
void btrfs_get_block_group (struct btrfs_block_group_cache *cache)
 
struct extent_bufferbtrfs_alloc_tree_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 parent, u64 root_objectid, const struct btrfs_disk_key *key, int level, u64 hint, u64 empty_size)
 
void btrfs_free_tree_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, u64 parent, int last_ref)
 
int btrfs_alloc_reserved_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 owner, u64 offset, u64 ram_bytes, struct btrfs_key *ins)
 
int btrfs_alloc_logged_file_extent (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 root_objectid, u64 owner, u64 offset, struct btrfs_key *ins)
 
int btrfs_reserve_extent (struct btrfs_root *root, u64 ram_bytes, u64 num_bytes, u64 min_alloc_size, u64 empty_size, u64 hint_byte, struct btrfs_key *ins, int is_data, int delalloc)
 
int btrfs_inc_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, int full_backref)
 
int btrfs_dec_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, int full_backref)
 
int btrfs_set_disk_extent_flags (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytenr, u64 num_bytes, u64 flags, int level, int is_data)
 
int btrfs_free_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, u64 owner, u64 offset)
 
int btrfs_free_reserved_extent (struct btrfs_fs_info *fs_info, u64 start, u64 len, int delalloc)
 
int btrfs_free_and_pin_reserved_extent (struct btrfs_fs_info *fs_info, u64 start, u64 len)
 
void btrfs_prepare_extent_commit (struct btrfs_fs_info *fs_info)
 
int btrfs_finish_extent_commit (struct btrfs_trans_handle *trans)
 
int btrfs_inc_extent_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, u64 owner, u64 offset)
 
int btrfs_start_dirty_block_groups (struct btrfs_trans_handle *trans)
 
int btrfs_write_dirty_block_groups (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_setup_space_cache (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_extent_readonly (struct btrfs_fs_info *fs_info, u64 bytenr)
 
int btrfs_free_block_groups (struct btrfs_fs_info *info)
 
int btrfs_read_block_groups (struct btrfs_fs_info *info)
 
int btrfs_can_relocate (struct btrfs_fs_info *fs_info, u64 bytenr)
 
int btrfs_make_block_group (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytes_used, u64 type, u64 chunk_offset, u64 size)
 
void btrfs_add_raid_kobjects (struct btrfs_fs_info *fs_info)
 
struct btrfs_trans_handlebtrfs_start_trans_remove_block_group (struct btrfs_fs_info *fs_info, const u64 chunk_offset)
 
int btrfs_remove_block_group (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 group_start, struct extent_map *em)
 
void btrfs_delete_unused_bgs (struct btrfs_fs_info *fs_info)
 
void btrfs_get_block_group_trimming (struct btrfs_block_group_cache *cache)
 
void btrfs_put_block_group_trimming (struct btrfs_block_group_cache *cache)
 
void btrfs_create_pending_block_groups (struct btrfs_trans_handle *trans)
 
u64 btrfs_data_alloc_profile (struct btrfs_fs_info *fs_info)
 
u64 btrfs_metadata_alloc_profile (struct btrfs_fs_info *fs_info)
 
u64 btrfs_system_alloc_profile (struct btrfs_fs_info *fs_info)
 
void btrfs_clear_space_info_full (struct btrfs_fs_info *info)
 
int btrfs_alloc_data_chunk_ondemand (struct btrfs_inode *inode, u64 bytes)
 
int btrfs_check_data_free_space (struct inode *inode, struct extent_changeset **reserved, u64 start, u64 len)
 
void btrfs_free_reserved_data_space (struct inode *inode, struct extent_changeset *reserved, u64 start, u64 len)
 
void btrfs_delalloc_release_space (struct inode *inode, struct extent_changeset *reserved, u64 start, u64 len, bool qgroup_free)
 
void btrfs_free_reserved_data_space_noquota (struct inode *inode, u64 start, u64 len)
 
void btrfs_trans_release_chunk_metadata (struct btrfs_trans_handle *trans)
 
int btrfs_orphan_reserve_metadata (struct btrfs_trans_handle *trans, struct btrfs_inode *inode)
 
void btrfs_orphan_release_metadata (struct btrfs_inode *inode)
 
int btrfs_subvolume_reserve_metadata (struct btrfs_root *root, struct btrfs_block_rsv *rsv, int nitems, u64 *qgroup_reserved, bool use_global_rsv)
 
void btrfs_subvolume_release_metadata (struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *rsv)
 
void btrfs_delalloc_release_extents (struct btrfs_inode *inode, u64 num_bytes, bool qgroup_free)
 
int btrfs_delalloc_reserve_metadata (struct btrfs_inode *inode, u64 num_bytes)
 
void btrfs_delalloc_release_metadata (struct btrfs_inode *inode, u64 num_bytes, bool qgroup_free)
 
int btrfs_delalloc_reserve_space (struct inode *inode, struct extent_changeset **reserved, u64 start, u64 len)
 
void btrfs_init_block_rsv (struct btrfs_block_rsv *rsv, unsigned short type)
 
struct btrfs_block_rsvbtrfs_alloc_block_rsv (struct btrfs_fs_info *fs_info, unsigned short type)
 
void btrfs_init_metadata_block_rsv (struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *rsv, unsigned short type)
 
void btrfs_free_block_rsv (struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *rsv)
 
void __btrfs_free_block_rsv (struct btrfs_block_rsv *rsv)
 
int btrfs_block_rsv_add (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 num_bytes, enum btrfs_reserve_flush_enum flush)
 
int btrfs_block_rsv_check (struct btrfs_block_rsv *block_rsv, int min_factor)
 
int btrfs_block_rsv_refill (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 min_reserved, enum btrfs_reserve_flush_enum flush)
 
int btrfs_block_rsv_migrate (struct btrfs_block_rsv *src_rsv, struct btrfs_block_rsv *dst_rsv, u64 num_bytes, int update_size)
 
int btrfs_cond_migrate_bytes (struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *dest, u64 num_bytes, int min_factor)
 
void btrfs_block_rsv_release (struct btrfs_fs_info *fs_info, struct btrfs_block_rsv *block_rsv, u64 num_bytes)
 
int btrfs_inc_block_group_ro (struct btrfs_fs_info *fs_info, struct btrfs_block_group_cache *cache)
 
void btrfs_dec_block_group_ro (struct btrfs_block_group_cache *cache)
 
void btrfs_put_block_group_cache (struct btrfs_fs_info *info)
 
u64 btrfs_account_ro_block_groups_free_space (struct btrfs_space_info *sinfo)
 
int btrfs_error_unpin_extent_range (struct btrfs_fs_info *fs_info, u64 start, u64 end)
 
int btrfs_discard_extent (struct btrfs_fs_info *fs_info, u64 bytenr, u64 num_bytes, u64 *actual_bytes)
 
int btrfs_force_chunk_alloc (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 type)
 
int btrfs_trim_fs (struct btrfs_fs_info *fs_info, struct fstrim_range *range)
 
int btrfs_init_space_info (struct btrfs_fs_info *fs_info)
 
int btrfs_delayed_refs_qgroup_accounting (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_start_write_no_snapshotting (struct btrfs_root *root)
 
void btrfs_end_write_no_snapshotting (struct btrfs_root *root)
 
void btrfs_wait_for_snapshot_creation (struct btrfs_root *root)
 
void check_system_chunk (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, const u64 type)
 
u64 add_new_free_space (struct btrfs_block_group_cache *block_group, struct btrfs_fs_info *info, u64 start, u64 end)
 
int btrfs_bin_search (struct extent_buffer *eb, const struct btrfs_key *key, int level, int *slot)
 
int btrfs_comp_cpu_keys (const struct btrfs_key *k1, const struct btrfs_key *k2)
 
int btrfs_previous_item (struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid, int type)
 
int btrfs_previous_extent_item (struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid)
 
void btrfs_set_item_key_safe (struct btrfs_fs_info *fs_info, struct btrfs_path *path, const struct btrfs_key *new_key)
 
struct extent_bufferbtrfs_root_node (struct btrfs_root *root)
 
struct extent_bufferbtrfs_lock_root_node (struct btrfs_root *root)
 
struct extent_bufferbtrfs_read_lock_root_node (struct btrfs_root *root)
 
int btrfs_find_next_key (struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, int lowest_level, u64 min_trans)
 
int btrfs_search_forward (struct btrfs_root *root, struct btrfs_key *min_key, struct btrfs_path *path, u64 min_trans)
 
int btrfs_compare_trees (struct btrfs_root *left_root, struct btrfs_root *right_root, btrfs_changed_cb_t cb, void *ctx)
 
int btrfs_cow_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer *parent, int parent_slot, struct extent_buffer **cow_ret)
 
int btrfs_copy_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer **cow_ret, u64 new_root_objectid)
 
int btrfs_block_can_be_shared (struct btrfs_root *root, struct extent_buffer *buf)
 
void btrfs_extend_item (struct btrfs_fs_info *fs_info, struct btrfs_path *path, u32 data_size)
 
void btrfs_truncate_item (struct btrfs_fs_info *fs_info, struct btrfs_path *path, u32 new_size, int from_end)
 
int btrfs_split_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key, unsigned long split_offset)
 
int btrfs_duplicate_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key)
 
int btrfs_find_item (struct btrfs_root *fs_root, struct btrfs_path *path, u64 inum, u64 ioff, u8 key_type, struct btrfs_key *found_key)
 
int btrfs_search_slot (struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow)
 
int btrfs_search_old_slot (struct btrfs_root *root, const struct btrfs_key *key, struct btrfs_path *p, u64 time_seq)
 
int btrfs_search_slot_for_read (struct btrfs_root *root, const struct btrfs_key *key, struct btrfs_path *p, int find_higher, int return_any)
 
int btrfs_realloc_node (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *parent, int start_slot, u64 *last_ret, struct btrfs_key *progress)
 
void btrfs_release_path (struct btrfs_path *p)
 
struct btrfs_pathbtrfs_alloc_path (void)
 
void btrfs_free_path (struct btrfs_path *p)
 
void btrfs_set_path_blocking (struct btrfs_path *p)
 
void btrfs_clear_path_blocking (struct btrfs_path *p, struct extent_buffer *held, int held_rw)
 
void btrfs_unlock_up_safe (struct btrfs_path *p, int level)
 
int btrfs_del_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int slot, int nr)
 
static int btrfs_del_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path)
 
void setup_items_for_insert (struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *cpu_key, u32 *data_size, u32 total_data, u32 total_size, int nr)
 
int btrfs_insert_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *key, void *data, u32 data_size)
 
int btrfs_insert_empty_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *cpu_key, u32 *data_size, int nr)
 
static int btrfs_insert_empty_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *key, u32 data_size)
 
int btrfs_next_leaf (struct btrfs_root *root, struct btrfs_path *path)
 
int btrfs_prev_leaf (struct btrfs_root *root, struct btrfs_path *path)
 
int btrfs_next_old_leaf (struct btrfs_root *root, struct btrfs_path *path, u64 time_seq)
 
static int btrfs_next_old_item (struct btrfs_root *root, struct btrfs_path *p, u64 time_seq)
 
static int btrfs_next_item (struct btrfs_root *root, struct btrfs_path *p)
 
int btrfs_leaf_free_space (struct btrfs_fs_info *fs_info, struct extent_buffer *leaf)
 
int __must_check btrfs_drop_snapshot (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, int update_ref, int for_reloc)
 
int btrfs_drop_subtree (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *node, struct extent_buffer *parent)
 
static int btrfs_fs_closing (struct btrfs_fs_info *fs_info)
 
static int btrfs_need_cleaner_sleep (struct btrfs_fs_info *fs_info)
 
static void free_fs_info (struct btrfs_fs_info *fs_info)
 
u64 btrfs_get_tree_mod_seq (struct btrfs_fs_info *fs_info, struct seq_list *elem)
 
void btrfs_put_tree_mod_seq (struct btrfs_fs_info *fs_info, struct seq_list *elem)
 
int btrfs_old_root_level (struct btrfs_root *root, u64 time_seq)
 
int btrfs_add_root_ref (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 root_id, u64 ref_id, u64 dirid, u64 sequence, const char *name, int name_len)
 
int btrfs_del_root_ref (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, const char *name, int name_len)
 
int btrfs_del_root (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, const struct btrfs_key *key)
 
int btrfs_insert_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *key, struct btrfs_root_item *item)
 
int __must_check btrfs_update_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item)
 
int btrfs_find_root (struct btrfs_root *root, const struct btrfs_key *search_key, struct btrfs_path *path, struct btrfs_root_item *root_item, struct btrfs_key *root_key)
 
int btrfs_find_orphan_roots (struct btrfs_fs_info *fs_info)
 
void btrfs_set_root_node (struct btrfs_root_item *item, struct extent_buffer *node)
 
void btrfs_check_and_init_root_item (struct btrfs_root_item *item)
 
void btrfs_update_root_times (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_uuid_tree_add (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, u64 subid)
 
int btrfs_uuid_tree_rem (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u8 *uuid, u8 type, u64 subid)
 
int btrfs_uuid_tree_iterate (struct btrfs_fs_info *fs_info, int(*check_func)(struct btrfs_fs_info *, u8 *, u8, u64))
 
int btrfs_check_dir_item_collision (struct btrfs_root *root, u64 dir, const char *name, int name_len)
 
int btrfs_insert_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct btrfs_inode *dir, struct btrfs_key *location, u8 type, u64 index)
 
struct btrfs_dir_item * btrfs_lookup_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, int name_len, int mod)
 
struct btrfs_dir_item * btrfs_lookup_dir_index_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 objectid, const char *name, int name_len, int mod)
 
struct btrfs_dir_item * btrfs_search_dir_index_item (struct btrfs_root *root, struct btrfs_path *path, u64 dirid, const char *name, int name_len)
 
int btrfs_delete_one_dir_name (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_dir_item *di)
 
int btrfs_insert_xattr_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, const char *name, u16 name_len, const void *data, u16 data_len)
 
struct btrfs_dir_item * btrfs_lookup_xattr (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod)
 
struct btrfs_dir_item * btrfs_match_dir_item_name (struct btrfs_fs_info *fs_info, struct btrfs_path *path, const char *name, int name_len)
 
int btrfs_insert_orphan_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 offset)
 
int btrfs_del_orphan_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 offset)
 
int btrfs_find_orphan_item (struct btrfs_root *root, u64 offset)
 
int btrfs_insert_inode_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index)
 
int btrfs_del_inode_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 *index)
 
int btrfs_insert_empty_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid)
 
int btrfs_lookup_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *location, int mod)
 
struct btrfs_inode_extref * btrfs_lookup_inode_extref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, int ins_len, int cow)
 
int btrfs_find_name_in_backref (struct extent_buffer *leaf, int slot, const char *name, int name_len, struct btrfs_inode_ref **ref_ret)
 
int btrfs_find_name_in_ext_backref (struct extent_buffer *leaf, int slot, u64 ref_objectid, const char *name, int name_len, struct btrfs_inode_extref **extref_ret)
 
int btrfs_del_csums (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 bytenr, u64 len)
 
blk_status_t btrfs_lookup_bio_sums (struct inode *inode, struct bio *bio, u32 *dst)
 
blk_status_t btrfs_lookup_bio_sums_dio (struct inode *inode, struct bio *bio, u64 logical_offset)
 
int btrfs_insert_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, u64 pos, u64 disk_offset, u64 disk_num_bytes, u64 num_bytes, u64 offset, u64 ram_bytes, u8 compression, u8 encryption, u16 other_encoding)
 
int btrfs_lookup_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, u64 bytenr, int mod)
 
int btrfs_csum_file_blocks (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_ordered_sum *sums)
 
blk_status_t btrfs_csum_one_bio (struct inode *inode, struct bio *bio, u64 file_start, int contig)
 
int btrfs_lookup_csums_range (struct btrfs_root *root, u64 start, u64 end, struct list_head *list, int search_commit)
 
void btrfs_extent_item_to_extent_map (struct btrfs_inode *inode, const struct btrfs_path *path, struct btrfs_file_extent_item *fi, const bool new_inline, struct extent_map *em)
 
struct btrfs_delalloc_workbtrfs_alloc_delalloc_work (struct inode *inode, int delay_iput)
 
void btrfs_wait_and_free_delalloc_work (struct btrfs_delalloc_work *work)
 
struct extent_mapbtrfs_get_extent_fiemap (struct btrfs_inode *inode, struct page *page, size_t pg_offset, u64 start, u64 len, int create)
 
noinline int can_nocow_extent (struct inode *inode, u64 offset, u64 *len, u64 *orig_start, u64 *orig_block_len, u64 *ram_bytes)
 
void __btrfs_del_delalloc_inode (struct btrfs_root *root, struct btrfs_inode *inode)
 
struct inodebtrfs_lookup_dentry (struct inode *dir, struct dentry *dentry)
 
int btrfs_set_inode_index (struct btrfs_inode *dir, u64 *index)
 
int btrfs_unlink_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_inode *dir, struct btrfs_inode *inode, const char *name, int name_len)
 
int btrfs_add_link (struct btrfs_trans_handle *trans, struct btrfs_inode *parent_inode, struct btrfs_inode *inode, const char *name, int name_len, int add_backref, u64 index)
 
int btrfs_unlink_subvol (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len)
 
int btrfs_truncate_block (struct inode *inode, loff_t from, loff_t len, int front)
 
int btrfs_truncate_inode_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type)
 
int btrfs_start_delalloc_inodes (struct btrfs_root *root, int delay_iput)
 
int btrfs_start_delalloc_roots (struct btrfs_fs_info *fs_info, int delay_iput, int nr)
 
int btrfs_set_extent_delalloc (struct inode *inode, u64 start, u64 end, unsigned int extra_bits, struct extent_state **cached_state, int dedupe)
 
int btrfs_create_subvol_root (struct btrfs_trans_handle *trans, struct btrfs_root *new_root, struct btrfs_root *parent_root, u64 new_dirid)
 
int btrfs_merge_bio_hook (struct page *page, unsigned long offset, size_t size, struct bio *bio, unsigned long bio_flags)
 
void btrfs_set_range_writeback (void *private_data, u64 start, u64 end)
 
int btrfs_page_mkwrite (struct vm_fault *vmf)
 
int btrfs_readpage (struct file *file, struct page *page)
 
void btrfs_evict_inode (struct inode *inode)
 
int btrfs_write_inode (struct inode *inode, struct writeback_control *wbc)
 
struct inodebtrfs_alloc_inode (struct super_block *sb)
 
void btrfs_destroy_inode (struct inode *inode)
 
int btrfs_drop_inode (struct inode *inode)
 
int __init btrfs_init_cachep (void)
 
void __cold btrfs_destroy_cachep (void)
 
struct inodebtrfs_iget (struct super_block *s, struct btrfs_key *location, struct btrfs_root *root, int *was_new)
 
struct extent_mapbtrfs_get_extent (struct btrfs_inode *inode, struct page *page, size_t pg_offset, u64 start, u64 end, int create)
 
int btrfs_update_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_update_inode_fallback (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_orphan_add (struct btrfs_trans_handle *trans, struct btrfs_inode *inode)
 
int btrfs_orphan_cleanup (struct btrfs_root *root)
 
void btrfs_orphan_commit_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_cont_expand (struct inode *inode, loff_t oldsize, loff_t size)
 
void btrfs_invalidate_inodes (struct btrfs_root *root)
 
void btrfs_add_delayed_iput (struct inode *inode)
 
void btrfs_run_delayed_iputs (struct btrfs_fs_info *fs_info)
 
int btrfs_prealloc_file_range (struct inode *inode, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 
int btrfs_prealloc_file_range_trans (struct inode *inode, struct btrfs_trans_handle *trans, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 
long btrfs_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
long btrfs_compat_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
int btrfs_ioctl_get_supported_features (void __user *arg)
 
void btrfs_update_iflags (struct inode *inode)
 
int btrfs_is_empty_uuid (u8 *uuid)
 
int btrfs_defrag_file (struct inode *inode, struct file *file, struct btrfs_ioctl_defrag_range_args *range, u64 newer_than, unsigned long max_pages)
 
void btrfs_get_block_group_info (struct list_head *groups_list, struct btrfs_ioctl_space_info *space)
 
void update_ioctl_balance_args (struct btrfs_fs_info *fs_info, int lock, struct btrfs_ioctl_balance_args *bargs)
 
ssize_t btrfs_dedupe_file_range (struct file *src_file, u64 loff, u64 olen, struct file *dst_file, u64 dst_loff)
 
int __init btrfs_auto_defrag_init (void)
 
void __cold btrfs_auto_defrag_exit (void)
 
int btrfs_add_inode_defrag (struct btrfs_trans_handle *trans, struct btrfs_inode *inode)
 
int btrfs_run_defrag_inodes (struct btrfs_fs_info *fs_info)
 
void btrfs_cleanup_defrag_inodes (struct btrfs_fs_info *fs_info)
 
int btrfs_sync_file (struct file *file, loff_t start, loff_t end, int datasync)
 
void btrfs_drop_extent_cache (struct btrfs_inode *inode, u64 start, u64 end, int skip_pinned)
 
int __btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, struct btrfs_path *path, u64 start, u64 end, u64 *drop_end, int drop_cache, int replace_extent, u32 extent_item_size, int *key_inserted)
 
int btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 start, u64 end, int drop_cache)
 
int btrfs_mark_extent_written (struct btrfs_trans_handle *trans, struct btrfs_inode *inode, u64 start, u64 end)
 
int btrfs_release_file (struct inode *inode, struct file *file)
 
int btrfs_dirty_pages (struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached)
 
int btrfs_fdatawrite_range (struct inode *inode, loff_t start, loff_t end)
 
int btrfs_clone_file_range (struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, u64 len)
 
int btrfs_defrag_leaves (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int __init btrfs_init_sysfs (void)
 
void __cold btrfs_exit_sysfs (void)
 
int btrfs_sysfs_add_mounted (struct btrfs_fs_info *fs_info)
 
void btrfs_sysfs_remove_mounted (struct btrfs_fs_info *fs_info)
 
int btrfs_parse_options (struct btrfs_fs_info *info, char *options, unsigned long new_flags)
 
int btrfs_sync_fs (struct super_block *sb, int wait)
 
static __printf (2, 3) __cold void btrfs_no_printk(const struct btrfs_fs_info *fs_info
 
static const char const char * btrfs_decode_error (int errno)
 
__cold void __btrfs_abort_transaction (struct btrfs_trans_handle *trans, const char *function, unsigned int line, int errno)
 
 __printf (5, 6) __cold void __btrfs_panic(struct btrfs_fs_info *fs_info
 
static void __btrfs_set_fs_incompat (struct btrfs_fs_info *fs_info, u64 flag)
 
static void __btrfs_clear_fs_incompat (struct btrfs_fs_info *fs_info, u64 flag)
 
static bool __btrfs_fs_incompat (struct btrfs_fs_info *fs_info, u64 flag)
 
static void __btrfs_set_fs_compat_ro (struct btrfs_fs_info *fs_info, u64 flag)
 
static void __btrfs_clear_fs_compat_ro (struct btrfs_fs_info *fs_info, u64 flag)
 
static int __btrfs_fs_compat_ro (struct btrfs_fs_info *fs_info, u64 flag)
 
static int btrfs_init_acl (struct btrfs_trans_handle *trans, struct inode *inode, struct inode *dir)
 
int btrfs_relocate_block_group (struct btrfs_fs_info *fs_info, u64 group_start)
 
int btrfs_init_reloc_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_update_reloc_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_recover_relocation (struct btrfs_root *root)
 
int btrfs_reloc_clone_csums (struct inode *inode, u64 file_pos, u64 len)
 
int btrfs_reloc_cow_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer *cow)
 
void btrfs_reloc_pre_snapshot (struct btrfs_pending_snapshot *pending, u64 *bytes_to_reserve)
 
int btrfs_reloc_post_snapshot (struct btrfs_trans_handle *trans, struct btrfs_pending_snapshot *pending)
 
int btrfs_scrub_dev (struct btrfs_fs_info *fs_info, u64 devid, u64 start, u64 end, struct btrfs_scrub_progress *progress, int readonly, int is_dev_replace)
 
void btrfs_scrub_pause (struct btrfs_fs_info *fs_info)
 
void btrfs_scrub_continue (struct btrfs_fs_info *fs_info)
 
int btrfs_scrub_cancel (struct btrfs_fs_info *info)
 
int btrfs_scrub_cancel_dev (struct btrfs_fs_info *info, struct btrfs_device *dev)
 
int btrfs_scrub_progress (struct btrfs_fs_info *fs_info, u64 devid, struct btrfs_scrub_progress *progress)
 
static void btrfs_init_full_stripe_locks_tree (struct btrfs_full_stripe_locks_tree *locks_root)
 
void btrfs_bio_counter_inc_blocked (struct btrfs_fs_info *fs_info)
 
void btrfs_bio_counter_inc_noblocked (struct btrfs_fs_info *fs_info)
 
void btrfs_bio_counter_sub (struct btrfs_fs_info *fs_info, s64 amount)
 
static void btrfs_bio_counter_dec (struct btrfs_fs_info *fs_info)
 
struct reada_controlbtrfs_reada_add (struct btrfs_root *root, struct btrfs_key *start, struct btrfs_key *end)
 
int btrfs_reada_wait (void *handle)
 
void btrfs_reada_detach (void *handle)
 
int btree_readahead_hook (struct extent_buffer *eb, int err)
 
static int is_fstree (u64 rootid)
 
static int btrfs_defrag_cancelled (struct btrfs_fs_info *fs_info)
 
static int btrfs_is_testing (struct btrfs_fs_info *fs_info)
 

Variables

struct kmem_cache * btrfs_trans_handle_cachep
 
struct kmem_cache * btrfs_bit_radix_cachep
 
struct kmem_cache * btrfs_path_cachep
 
struct kmem_cache * btrfs_free_space_cachep
 
static const int btrfs_csum_sizes [] = { 4 }
 
u8 csum [BTRFS_CSUM_SIZE]
 
u8 fsid [BTRFS_FSID_SIZE]
 
__le64 bytenr
 
__le64 flags
 
u8 chunk_tree_uuid [BTRFS_UUID_SIZE]
 
__le64 generation
 
__le64 owner
 
__le32 nritems
 
u8 level
 
__le64 tree_root
 
__le64 tree_root_gen
 
__le64 chunk_root
 
__le64 chunk_root_gen
 
__le64 extent_root
 
__le64 extent_root_gen
 
__le64 fs_root
 
__le64 fs_root_gen
 
__le64 dev_root
 
__le64 dev_root_gen
 
__le64 csum_root
 
__le64 csum_root_gen
 
__le64 total_bytes
 
__le64 bytes_used
 
__le64 num_devices
 
__le64 unused_64 [4]
 
u8 tree_root_level
 
u8 chunk_root_level
 
u8 extent_root_level
 
u8 fs_root_level
 
u8 dev_root_level
 
u8 csum_root_level
 
u8 unused_8 [10]
 
__le64 magic
 
__le64 root
 
__le64 log_root
 
__le64 log_root_transid
 
__le64 root_dir_objectid
 
__le32 sectorsize
 
__le32 nodesize
 
__le32 __unused_leafsize
 
__le32 stripesize
 
__le32 sys_chunk_array_size
 
__le64 chunk_root_generation
 
__le64 compat_flags
 
__le64 compat_ro_flags
 
__le64 incompat_flags
 
__le16 csum_type
 
u8 root_level
 
u8 log_root_level
 
struct btrfs_dev_item dev_item
 
char label [BTRFS_LABEL_SIZE]
 
__le64 cache_generation
 
__le64 uuid_tree_generation
 
__le64 reserved [30]
 
u8 sys_chunk_array [BTRFS_SYSTEM_CHUNK_ARRAY_SIZE]
 
struct btrfs_root_backup super_roots [BTRFS_NUM_BACKUP_ROOTS]
 
struct btrfs_disk_key key
 
__le32 offset
 
__le32 size
 
struct btrfs_header header
 
struct btrfs_item items []
 
__le64 blockptr
 
struct btrfs_key_ptr ptrs []
 
enum { ... }  __attribute__
 
const struct dentry_operations btrfs_dentry_operations
 
const struct file_operations btrfs_file_operations
 
static const char * fmt
 
const char * function
 
const char unsigned int line
 
const char unsigned int int errno
 

Macro Definition Documentation

◆ __le8

#define __le8   u8

◆ ASSERT

#define ASSERT (   expr)    ((void)0)

◆ btrfs_abort_transaction

#define btrfs_abort_transaction (   trans,
  errno 
)
Value:
do { \
/* Report first abort since mount */ \
if (!test_and_set_bit(BTRFS_FS_STATE_TRANS_ABORTED, \
&((trans)->fs_info->fs_state))) { \
if ((errno) != -EIO) { \
WARN(1, KERN_DEBUG \
"BTRFS: Transaction aborted (error %d)\n", \
(errno)); \
} else { \
btrfs_debug((trans)->fs_info, \
"Transaction aborted (error %d)", \
(errno)); \
} \
} \
__btrfs_abort_transaction((trans), __func__, \
__LINE__, (errno)); \
} while (0)
const char unsigned int int errno
Definition: ctree.h:3535
#define fs_info(fs, fmt,...)
Definition: util.h:28
#define BTRFS_FS_STATE_TRANS_ABORTED
Definition: ctree.h:116

◆ btrfs_alert

#define btrfs_alert (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_ALERT fmt, ##args)

◆ btrfs_alert_in_rcu

#define btrfs_alert_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_ALERT fmt, ##args)

◆ btrfs_alert_rl

#define btrfs_alert_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_ALERT fmt, ##args)

◆ btrfs_alert_rl_in_rcu

#define btrfs_alert_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_ALERT fmt, ##args)

◆ BTRFS_BACKREF_REV_MASK

#define BTRFS_BACKREF_REV_MASK
Value:
(((u64)BTRFS_BACKREF_REV_MAX - 1) << \
BTRFS_BACKREF_REV_SHIFT)
#define BTRFS_BACKREF_REV_MAX
Definition: ctree.h:120

◆ BTRFS_BACKREF_REV_MAX

#define BTRFS_BACKREF_REV_MAX   256

◆ BTRFS_BACKREF_REV_SHIFT

#define BTRFS_BACKREF_REV_SHIFT   56

◆ BTRFS_BLOCK_RSV_CHUNK

#define BTRFS_BLOCK_RSV_CHUNK   4

◆ BTRFS_BLOCK_RSV_DELALLOC

#define BTRFS_BLOCK_RSV_DELALLOC   2

◆ BTRFS_BLOCK_RSV_DELOPS

#define BTRFS_BLOCK_RSV_DELOPS   5

◆ BTRFS_BLOCK_RSV_EMPTY

#define BTRFS_BLOCK_RSV_EMPTY   6

◆ BTRFS_BLOCK_RSV_GLOBAL

#define BTRFS_BLOCK_RSV_GLOBAL   1

◆ BTRFS_BLOCK_RSV_TEMP

#define BTRFS_BLOCK_RSV_TEMP   7

◆ BTRFS_BLOCK_RSV_TRANS

#define BTRFS_BLOCK_RSV_TRANS   3

◆ BTRFS_BYTES_TO_BLKS

#define BTRFS_BYTES_TO_BLKS (   fs_info,
  bytes 
)    ((bytes) >> (fs_info)->sb->s_blocksize_bits)

◆ btrfs_clear_and_info

#define btrfs_clear_and_info (   fs_info,
  opt,
  fmt,
  args... 
)
Value:
{ \
if (btrfs_test_opt(fs_info, opt)) \
btrfs_info(fs_info, fmt, ##args); \
btrfs_clear_opt(fs_info->mount_opt, opt); \
}
static const char * fmt
Definition: ctree.h:3324
#define btrfs_test_opt(fs_info, opt)
Definition: ctree.h:1367
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_clear_fs_compat_ro

#define btrfs_clear_fs_compat_ro (   __fs_info,
  opt 
)    __btrfs_clear_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)

◆ btrfs_clear_fs_incompat

#define btrfs_clear_fs_incompat (   __fs_info,
  opt 
)    __btrfs_clear_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)

◆ btrfs_clear_opt

#define btrfs_clear_opt (   o,
  opt 
)    ((o) &= ~BTRFS_MOUNT_##opt)

◆ btrfs_clear_pending

#define btrfs_clear_pending (   info,
  opt 
)    clear_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)

◆ btrfs_clear_pending_and_info

#define btrfs_clear_pending_and_info (   info,
  opt,
  fmt,
  args... 
)
Value:
do { \
if (btrfs_raw_test_opt((info)->mount_opt, opt)) { \
btrfs_info((info), fmt, ##args); \
btrfs_set_pending((info), CLEAR_##opt); \
btrfs_clear_pending((info), SET_##opt); \
} \
} while(0)
static const char * fmt
Definition: ctree.h:3324
#define btrfs_raw_test_opt(o, opt)
Definition: ctree.h:1366

◆ BTRFS_COMPAT_EXTENT_TREE_V0

#define BTRFS_COMPAT_EXTENT_TREE_V0

◆ btrfs_crit

#define btrfs_crit (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_CRIT fmt, ##args)

◆ btrfs_crit_in_rcu

#define btrfs_crit_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_CRIT fmt, ##args)

◆ btrfs_crit_rl

#define btrfs_crit_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_CRIT fmt, ##args)

◆ btrfs_crit_rl_in_rcu

#define btrfs_crit_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_CRIT fmt, ##args)

◆ btrfs_debug

#define btrfs_debug (   fs_info,
  fmt,
  args... 
)    btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)

◆ btrfs_debug_in_rcu

#define btrfs_debug_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)

◆ btrfs_debug_rl

#define btrfs_debug_rl (   fs_info,
  fmt,
  args... 
)    btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)

◆ btrfs_debug_rl_in_rcu

#define btrfs_debug_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_no_printk(fs_info, KERN_DEBUG fmt, ##args)

◆ BTRFS_DEFAULT_COMMIT_INTERVAL

#define BTRFS_DEFAULT_COMMIT_INTERVAL   (30)

◆ BTRFS_DEFAULT_MAX_INLINE

#define BTRFS_DEFAULT_MAX_INLINE   (2048)

◆ BTRFS_DIRTY_METADATA_THRESH

#define BTRFS_DIRTY_METADATA_THRESH   SZ_32M

◆ btrfs_emerg

#define btrfs_emerg (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_EMERG fmt, ##args)

◆ btrfs_emerg_in_rcu

#define btrfs_emerg_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_EMERG fmt, ##args)

◆ btrfs_emerg_rl

#define btrfs_emerg_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_EMERG fmt, ##args)

◆ btrfs_emerg_rl_in_rcu

#define btrfs_emerg_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_EMERG fmt, ##args)

◆ BTRFS_EMPTY_DIR_SIZE

#define BTRFS_EMPTY_DIR_SIZE   0

◆ btrfs_err

#define btrfs_err (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_ERR fmt, ##args)

◆ btrfs_err_in_rcu

#define btrfs_err_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_ERR fmt, ##args)

◆ btrfs_err_rl

#define btrfs_err_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_ERR fmt, ##args)

◆ btrfs_err_rl_in_rcu

#define btrfs_err_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_ERR fmt, ##args)

◆ BTRFS_FEATURE_COMPAT_RO_SAFE_CLEAR

#define BTRFS_FEATURE_COMPAT_RO_SAFE_CLEAR   0ULL

◆ BTRFS_FEATURE_COMPAT_RO_SAFE_SET

#define BTRFS_FEATURE_COMPAT_RO_SAFE_SET   0ULL

◆ BTRFS_FEATURE_COMPAT_RO_SUPP

#define BTRFS_FEATURE_COMPAT_RO_SUPP
Value:
(BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE | \
BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID)

◆ BTRFS_FEATURE_COMPAT_SAFE_CLEAR

#define BTRFS_FEATURE_COMPAT_SAFE_CLEAR   0ULL

◆ BTRFS_FEATURE_COMPAT_SAFE_SET

#define BTRFS_FEATURE_COMPAT_SAFE_SET   0ULL

◆ BTRFS_FEATURE_COMPAT_SUPP

#define BTRFS_FEATURE_COMPAT_SUPP   0ULL

◆ BTRFS_FEATURE_INCOMPAT_SAFE_CLEAR

#define BTRFS_FEATURE_INCOMPAT_SAFE_CLEAR   0ULL

◆ BTRFS_FEATURE_INCOMPAT_SAFE_SET

#define BTRFS_FEATURE_INCOMPAT_SAFE_SET   (BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF)

◆ BTRFS_FEATURE_INCOMPAT_SUPP

#define BTRFS_FEATURE_INCOMPAT_SUPP
Value:
(BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF | \
BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL | \
BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS | \
BTRFS_FEATURE_INCOMPAT_BIG_METADATA | \
BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO | \
BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD | \
BTRFS_FEATURE_INCOMPAT_RAID56 | \
BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF | \
BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA | \
BTRFS_FEATURE_INCOMPAT_NO_HOLES)

◆ BTRFS_FILE_EXTENT_INLINE_DATA_START

#define BTRFS_FILE_EXTENT_INLINE_DATA_START   (offsetof(struct btrfs_file_extent_item, disk_bytenr))

◆ BTRFS_FS_BARRIER

#define BTRFS_FS_BARRIER   1

◆ BTRFS_FS_BTREE_ERR

#define BTRFS_FS_BTREE_ERR   11

◆ BTRFS_FS_CLOSING_DONE

#define BTRFS_FS_CLOSING_DONE   3

◆ BTRFS_FS_CLOSING_START

#define BTRFS_FS_CLOSING_START   2

◆ btrfs_fs_compat_ro

#define btrfs_fs_compat_ro (   fs_info,
  opt 
)    __btrfs_fs_compat_ro((fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)

◆ BTRFS_FS_CREATING_FREE_SPACE_TREE

#define BTRFS_FS_CREATING_FREE_SPACE_TREE   10

◆ BTRFS_FS_EXCL_OP

#define BTRFS_FS_EXCL_OP   16

◆ BTRFS_FS_FROZEN

#define BTRFS_FS_FROZEN   15

◆ btrfs_fs_incompat

#define btrfs_fs_incompat (   fs_info,
  opt 
)    __btrfs_fs_incompat((fs_info), BTRFS_FEATURE_INCOMPAT_##opt)

◆ BTRFS_FS_LOG1_ERR

#define BTRFS_FS_LOG1_ERR   12

◆ BTRFS_FS_LOG2_ERR

#define BTRFS_FS_LOG2_ERR   13

◆ BTRFS_FS_LOG_RECOVERING

#define BTRFS_FS_LOG_RECOVERING   4

◆ BTRFS_FS_NEED_ASYNC_COMMIT

#define BTRFS_FS_NEED_ASYNC_COMMIT   17

◆ BTRFS_FS_OPEN

#define BTRFS_FS_OPEN   5

◆ BTRFS_FS_QUOTA_ENABLED

#define BTRFS_FS_QUOTA_ENABLED   6

◆ BTRFS_FS_QUOTA_OVERRIDE

#define BTRFS_FS_QUOTA_OVERRIDE   14

◆ BTRFS_FS_STATE_DEV_REPLACING

#define BTRFS_FS_STATE_DEV_REPLACING   3

◆ BTRFS_FS_STATE_DUMMY_FS_INFO

#define BTRFS_FS_STATE_DUMMY_FS_INFO   4

◆ BTRFS_FS_STATE_ERROR

#define BTRFS_FS_STATE_ERROR   0

◆ BTRFS_FS_STATE_REMOUNTING

#define BTRFS_FS_STATE_REMOUNTING   1

◆ BTRFS_FS_STATE_TRANS_ABORTED

#define BTRFS_FS_STATE_TRANS_ABORTED   2

◆ BTRFS_FS_UPDATE_UUID_TREE_GEN

#define BTRFS_FS_UPDATE_UUID_TREE_GEN   9

◆ btrfs_get_acl

#define btrfs_get_acl   NULL

◆ btrfs_handle_fs_error

#define btrfs_handle_fs_error (   fs_info,
  errno,
  fmt,
  args... 
)
Value:
do { \
__btrfs_handle_fs_error((fs_info), __func__, __LINE__, \
(errno), fmt, ##args); \
} while (0)
static const char * fmt
Definition: ctree.h:3324
const char unsigned int int errno
Definition: ctree.h:3535
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_info

#define btrfs_info (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_INFO fmt, ##args)

◆ btrfs_info_in_rcu

#define btrfs_info_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_INFO fmt, ##args)

◆ btrfs_info_rl

#define btrfs_info_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_INFO fmt, ##args)

◆ btrfs_info_rl_in_rcu

#define btrfs_info_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_INFO fmt, ##args)

◆ BTRFS_INODE_APPEND

#define BTRFS_INODE_APPEND   (1 << 7)

◆ BTRFS_INODE_COMPRESS

#define BTRFS_INODE_COMPRESS   (1 << 11)

◆ BTRFS_INODE_DIRSYNC

#define BTRFS_INODE_DIRSYNC   (1 << 10)

◆ BTRFS_INODE_IMMUTABLE

#define BTRFS_INODE_IMMUTABLE   (1 << 6)

◆ BTRFS_INODE_NOATIME

#define BTRFS_INODE_NOATIME   (1 << 9)

◆ BTRFS_INODE_NOCOMPRESS

#define BTRFS_INODE_NOCOMPRESS   (1 << 3)

◆ BTRFS_INODE_NODATACOW

#define BTRFS_INODE_NODATACOW   (1 << 1)

◆ BTRFS_INODE_NODATASUM

#define BTRFS_INODE_NODATASUM   (1 << 0)

◆ BTRFS_INODE_NODUMP

#define BTRFS_INODE_NODUMP   (1 << 8)

◆ BTRFS_INODE_PREALLOC

#define BTRFS_INODE_PREALLOC   (1 << 4)

◆ BTRFS_INODE_READONLY

#define BTRFS_INODE_READONLY   (1 << 2)

◆ BTRFS_INODE_ROOT_ITEM_INIT

#define BTRFS_INODE_ROOT_ITEM_INIT   (1 << 31)

◆ BTRFS_INODE_SYNC

#define BTRFS_INODE_SYNC   (1 << 5)

◆ BTRFS_IOPRIO_READA

#define BTRFS_IOPRIO_READA   (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0))

◆ btrfs_item_ptr

#define btrfs_item_ptr (   leaf,
  slot,
  type 
)
Value:
btrfs_item_offset_nr(leaf, slot)))
static u32 btrfs_item_offset_nr(const struct extent_buffer *eb, int nr)
Definition: ctree.h:1923
__le16 type
Definition: cifsacl.h:1175
#define BTRFS_LEAF_DATA_OFFSET
Definition: ctree.h:1301

◆ btrfs_item_ptr_offset

#define btrfs_item_ptr_offset (   leaf,
  slot 
)
Value:
((unsigned long)(BTRFS_LEAF_DATA_OFFSET + \
btrfs_item_offset_nr(leaf, slot)))
static u32 btrfs_item_offset_nr(const struct extent_buffer *eb, int nr)
Definition: ctree.h:1923
#define BTRFS_LEAF_DATA_OFFSET
Definition: ctree.h:1301

◆ BTRFS_LEAF_DATA_OFFSET

#define BTRFS_LEAF_DATA_OFFSET   offsetof(struct btrfs_leaf, items)

◆ BTRFS_LINK_MAX

#define BTRFS_LINK_MAX   65535U

◆ BTRFS_MAGIC

#define BTRFS_MAGIC   0x4D5F53665248425FULL /* ascii _BHRfS_M, no null */

◆ BTRFS_MAX_EXTENT_ITEM_SIZE

#define BTRFS_MAX_EXTENT_ITEM_SIZE (   r)
Value:
((BTRFS_LEAF_DATA_SIZE(r->fs_info) >> 4) - \
sizeof(struct btrfs_item))
Definition: ctree.h:278
static u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info)
Definition: ctree.h:1295

◆ BTRFS_MAX_EXTENT_SIZE

#define BTRFS_MAX_EXTENT_SIZE   SZ_128M

◆ BTRFS_MAX_LEVEL

#define BTRFS_MAX_LEVEL   8

◆ BTRFS_MAX_METADATA_BLOCKSIZE

#define BTRFS_MAX_METADATA_BLOCKSIZE   65536

◆ BTRFS_MAX_MIRRORS

#define BTRFS_MAX_MIRRORS   3

◆ BTRFS_MIXED_BACKREF_REV

#define BTRFS_MIXED_BACKREF_REV   1

◆ BTRFS_MOUNT_AUTO_DEFRAG

#define BTRFS_MOUNT_AUTO_DEFRAG   (1 << 16)

◆ BTRFS_MOUNT_CHECK_INTEGRITY

#define BTRFS_MOUNT_CHECK_INTEGRITY   (1 << 20)

◆ BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA

#define BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA   (1 << 21)

◆ BTRFS_MOUNT_CLEAR_CACHE

#define BTRFS_MOUNT_CLEAR_CACHE   (1 << 13)

◆ BTRFS_MOUNT_COMPRESS

#define BTRFS_MOUNT_COMPRESS   (1 << 5)

◆ BTRFS_MOUNT_DEGRADED

#define BTRFS_MOUNT_DEGRADED   (1 << 4)

◆ BTRFS_MOUNT_DISCARD

#define BTRFS_MOUNT_DISCARD   (1 << 10)

◆ BTRFS_MOUNT_ENOSPC_DEBUG

#define BTRFS_MOUNT_ENOSPC_DEBUG   (1 << 15)

◆ BTRFS_MOUNT_FLUSHONCOMMIT

#define BTRFS_MOUNT_FLUSHONCOMMIT   (1 << 7)

◆ BTRFS_MOUNT_FORCE_COMPRESS

#define BTRFS_MOUNT_FORCE_COMPRESS   (1 << 11)

◆ BTRFS_MOUNT_FRAGMENT_DATA

#define BTRFS_MOUNT_FRAGMENT_DATA   (1 << 24)

◆ BTRFS_MOUNT_FRAGMENT_METADATA

#define BTRFS_MOUNT_FRAGMENT_METADATA   (1 << 25)

◆ BTRFS_MOUNT_FREE_SPACE_TREE

#define BTRFS_MOUNT_FREE_SPACE_TREE   (1 << 26)

◆ BTRFS_MOUNT_INODE_MAP_CACHE

#define BTRFS_MOUNT_INODE_MAP_CACHE   (1 << 17)

◆ BTRFS_MOUNT_NOBARRIER

#define BTRFS_MOUNT_NOBARRIER   (1 << 2)

◆ BTRFS_MOUNT_NODATACOW

#define BTRFS_MOUNT_NODATACOW   (1 << 1)

◆ BTRFS_MOUNT_NODATASUM

#define BTRFS_MOUNT_NODATASUM   (1 << 0)

◆ BTRFS_MOUNT_NOLOGREPLAY

#define BTRFS_MOUNT_NOLOGREPLAY   (1 << 27)

◆ BTRFS_MOUNT_NOSSD

#define BTRFS_MOUNT_NOSSD   (1 << 9)

◆ BTRFS_MOUNT_NOTREELOG

#define BTRFS_MOUNT_NOTREELOG   (1 << 6)

◆ BTRFS_MOUNT_PANIC_ON_FATAL_ERROR

#define BTRFS_MOUNT_PANIC_ON_FATAL_ERROR   (1 << 22)

◆ BTRFS_MOUNT_REF_VERIFY

#define BTRFS_MOUNT_REF_VERIFY   (1 << 28)

◆ BTRFS_MOUNT_RESCAN_UUID_TREE

#define BTRFS_MOUNT_RESCAN_UUID_TREE   (1 << 23)

◆ BTRFS_MOUNT_SKIP_BALANCE

#define BTRFS_MOUNT_SKIP_BALANCE   (1 << 19)

◆ BTRFS_MOUNT_SPACE_CACHE

#define BTRFS_MOUNT_SPACE_CACHE   (1 << 12)

◆ BTRFS_MOUNT_SSD

#define BTRFS_MOUNT_SSD   (1 << 3)

◆ BTRFS_MOUNT_SSD_SPREAD

#define BTRFS_MOUNT_SSD_SPREAD   (1 << 8)

◆ BTRFS_MOUNT_USEBACKUPROOT

#define BTRFS_MOUNT_USEBACKUPROOT   (1 << 18)

◆ BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED

#define BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED   (1 << 14)

◆ BTRFS_NAME_LEN

#define BTRFS_NAME_LEN   255

◆ btrfs_notice

#define btrfs_notice (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_NOTICE fmt, ##args)

◆ btrfs_notice_in_rcu

#define btrfs_notice_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_NOTICE fmt, ##args)

◆ btrfs_notice_rl

#define btrfs_notice_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_NOTICE fmt, ##args)

◆ btrfs_notice_rl_in_rcu

#define btrfs_notice_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_NOTICE fmt, ##args)

◆ BTRFS_NUM_BACKUP_ROOTS

#define BTRFS_NUM_BACKUP_ROOTS   4

◆ BTRFS_OLD_BACKREF_REV

#define BTRFS_OLD_BACKREF_REV   0

◆ BTRFS_OLDEST_GENERATION

#define BTRFS_OLDEST_GENERATION   0ULL

◆ btrfs_panic

#define btrfs_panic (   fs_info,
  errno,
  fmt,
  args... 
)
Value:
do { \
__btrfs_panic(fs_info, __func__, __LINE__, errno, fmt, ##args); \
BUG(); \
} while (0)
static const char * fmt
Definition: ctree.h:3324
const char unsigned int int errno
Definition: ctree.h:3535
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ BTRFS_PENDING_CLEAR_INODE_MAP_CACHE

#define BTRFS_PENDING_CLEAR_INODE_MAP_CACHE   (1)

◆ BTRFS_PENDING_COMMIT

#define BTRFS_PENDING_COMMIT   (2)

◆ BTRFS_PENDING_SET_INODE_MAP_CACHE

#define BTRFS_PENDING_SET_INODE_MAP_CACHE   (0)

◆ btrfs_printk

#define btrfs_printk (   fs_info,
  fmt,
  args... 
)    btrfs_no_printk(fs_info, fmt, ##args)

◆ btrfs_printk_in_rcu

#define btrfs_printk_in_rcu (   fs_info,
  fmt,
  args... 
)
Value:
do { \
rcu_read_lock(); \
btrfs_printk(fs_info, fmt, ##args); \
rcu_read_unlock(); \
} while (0)
static const char * fmt
Definition: ctree.h:3324
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_printk_ratelimited

#define btrfs_printk_ratelimited (   fs_info,
  fmt,
  args... 
)
Value:
do { \
static DEFINE_RATELIMIT_STATE(_rs, \
DEFAULT_RATELIMIT_INTERVAL, \
DEFAULT_RATELIMIT_BURST); \
if (__ratelimit(&_rs)) \
btrfs_printk(fs_info, fmt, ##args); \
} while (0)
static const char * fmt
Definition: ctree.h:3324
static DEFINE_RATELIMIT_STATE(xfs_buf_write_fail_rl_state, 30 *HZ, 10)
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_printk_rl_in_rcu

#define btrfs_printk_rl_in_rcu (   fs_info,
  fmt,
  args... 
)
Value:
do { \
rcu_read_lock(); \
btrfs_printk_ratelimited(fs_info, fmt, ##args); \
rcu_read_unlock(); \
} while (0)
static const char * fmt
Definition: ctree.h:3324
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_raw_test_opt

#define btrfs_raw_test_opt (   o,
  opt 
)    ((o) & BTRFS_MOUNT_##opt)

◆ BTRFS_ROOT_DEFRAG_RUNNING

#define BTRFS_ROOT_DEFRAG_RUNNING   5

◆ BTRFS_ROOT_DIRTY

#define BTRFS_ROOT_DIRTY   8

◆ BTRFS_ROOT_FORCE_COW

#define BTRFS_ROOT_FORCE_COW   6

◆ BTRFS_ROOT_IN_RADIX

#define BTRFS_ROOT_IN_RADIX   3

◆ BTRFS_ROOT_IN_TRANS_SETUP

#define BTRFS_ROOT_IN_TRANS_SETUP   0

◆ BTRFS_ROOT_MULTI_LOG_TASKS

#define BTRFS_ROOT_MULTI_LOG_TASKS   7

◆ BTRFS_ROOT_ORPHAN_ITEM_INSERTED

#define BTRFS_ROOT_ORPHAN_ITEM_INSERTED   4

◆ BTRFS_ROOT_REF_COWS

#define BTRFS_ROOT_REF_COWS   1

◆ BTRFS_ROOT_TRACK_DIRTY

#define BTRFS_ROOT_TRACK_DIRTY   2

◆ btrfs_set_acl

#define btrfs_set_acl   NULL

◆ btrfs_set_and_info

#define btrfs_set_and_info (   fs_info,
  opt,
  fmt,
  args... 
)
Value:
{ \
if (!btrfs_test_opt(fs_info, opt)) \
btrfs_info(fs_info, fmt, ##args); \
btrfs_set_opt(fs_info->mount_opt, opt); \
}
static const char * fmt
Definition: ctree.h:3324
#define btrfs_test_opt(fs_info, opt)
Definition: ctree.h:1367
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_set_fs_compat_ro

#define btrfs_set_fs_compat_ro (   __fs_info,
  opt 
)    __btrfs_set_fs_compat_ro((__fs_info), BTRFS_FEATURE_COMPAT_RO_##opt)

◆ btrfs_set_fs_incompat

#define btrfs_set_fs_incompat (   __fs_info,
  opt 
)    __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)

◆ btrfs_set_opt

#define btrfs_set_opt (   o,
  opt 
)    ((o) |= BTRFS_MOUNT_##opt)

◆ btrfs_set_pending

#define btrfs_set_pending (   info,
  opt 
)    set_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)

◆ btrfs_set_pending_and_info

#define btrfs_set_pending_and_info (   info,
  opt,
  fmt,
  args... 
)
Value:
do { \
if (!btrfs_raw_test_opt((info)->mount_opt, opt)) { \
btrfs_info((info), fmt, ##args); \
btrfs_set_pending((info), SET_##opt); \
btrfs_clear_pending((info), CLEAR_##opt); \
} \
} while(0)
static const char * fmt
Definition: ctree.h:3324
#define btrfs_raw_test_opt(o, opt)
Definition: ctree.h:1366

◆ BTRFS_SETGET_FUNCS

#define BTRFS_SETGET_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(const struct extent_buffer *eb, \
const type *s) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
return btrfs_get_##bits(eb, s, offsetof(type, member)); \
} \
static inline void btrfs_set_##name(struct extent_buffer *eb, type *s, \
u##bits val) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
btrfs_set_##bits(eb, s, offsetof(type, member), val); \
} \
static inline u##bits btrfs_token_##name(const struct extent_buffer *eb,\
const type *s, \
struct btrfs_map_token *token) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
return btrfs_get_token_##bits(eb, s, offsetof(type, member), token); \
} \
static inline void btrfs_set_token_##name(struct extent_buffer *eb, \
type *s, u##bits val, \
struct btrfs_map_token *token) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
btrfs_set_token_##bits(eb, s, offsetof(type, member), val, token); \
}
Definition: ctree.h:1458
__le16 type
Definition: cifsacl.h:1175
Definition: extent_io.h:175
unsigned char u[16]
Definition: protocol.h:31
char name[16]
Definition: cifspdu.h:457

◆ BTRFS_SETGET_HEADER_FUNCS

#define BTRFS_SETGET_HEADER_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(const struct extent_buffer *eb) \
{ \
const type *p = page_address(eb->pages[0]); \
u##bits res = le##bits##_to_cpu(p->member); \
return res; \
} \
static inline void btrfs_set_##name(struct extent_buffer *eb, \
u##bits val) \
{ \
type *p = page_address(eb->pages[0]); \
p->member = cpu_to_le##bits(val); \
}
__le16 type
Definition: cifsacl.h:1175
Definition: extent_io.h:175
unsigned char u[16]
Definition: protocol.h:31
char name[16]
Definition: cifspdu.h:457

◆ BTRFS_SETGET_STACK_FUNCS

#define BTRFS_SETGET_STACK_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(const type *s) \
{ \
return le##bits##_to_cpu(s->member); \
} \
static inline void btrfs_set_##name(type *s, u##bits val) \
{ \
s->member = cpu_to_le##bits(val); \
}
__le16 type
Definition: cifsacl.h:1175
unsigned char u[16]
Definition: protocol.h:31
char name[16]
Definition: cifspdu.h:457

◆ BTRFS_STRIPE_HASH_TABLE_BITS

#define BTRFS_STRIPE_HASH_TABLE_BITS   11

◆ BTRFS_SYSTEM_CHUNK_ARRAY_SIZE

#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE   2048

◆ btrfs_test_opt

#define btrfs_test_opt (   fs_info,
  opt 
)
Value:
((fs_info)->mount_opt & \
BTRFS_MOUNT_##opt)
#define fs_info(fs, fmt,...)
Definition: util.h:28

◆ btrfs_test_pending

#define btrfs_test_pending (   info,
  opt 
)    test_bit(BTRFS_PENDING_##opt, &(info)->pending_changes)

◆ btrfs_warn

#define btrfs_warn (   fs_info,
  fmt,
  args... 
)    btrfs_printk(fs_info, KERN_WARNING fmt, ##args)

◆ btrfs_warn_in_rcu

#define btrfs_warn_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_in_rcu(fs_info, KERN_WARNING fmt, ##args)

◆ btrfs_warn_rl

#define btrfs_warn_rl (   fs_info,
  fmt,
  args... 
)    btrfs_printk_ratelimited(fs_info, KERN_WARNING fmt, ##args)

◆ btrfs_warn_rl_in_rcu

#define btrfs_warn_rl_in_rcu (   fs_info,
  fmt,
  args... 
)    btrfs_printk_rl_in_rcu(fs_info, KERN_WARNING fmt, ##args)

◆ CACHING_CTL_WAKE_UP

#define CACHING_CTL_WAKE_UP   SZ_2M

◆ cpu_to_le8

#define cpu_to_le8 (   v)    (v)

◆ DECLARE_BTRFS_SETGET_BITS

#define DECLARE_BTRFS_SETGET_BITS (   bits)
Value:
u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \
const void *ptr, unsigned long off, \
struct btrfs_map_token *token); \
void btrfs_set_token_##bits(struct extent_buffer *eb, const void *ptr, \
unsigned long off, u##bits val, \
struct btrfs_map_token *token); \
static inline u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
const void *ptr, \
unsigned long off) \
{ \
return btrfs_get_token_##bits(eb, ptr, off, NULL); \
} \
static inline void btrfs_set_##bits(struct extent_buffer *eb, void *ptr,\
unsigned long off, u##bits val) \
{ \
btrfs_set_token_##bits(eb, ptr, off, val, NULL); \
}
Definition: ctree.h:1458
Definition: extent_io.h:175
unsigned char u[16]
Definition: protocol.h:31

◆ le8_to_cpu

#define le8_to_cpu (   v)    (v)

◆ read_eb_member

#define read_eb_member (   eb,
  ptr,
  type,
  member,
  result 
)
Value:
(\
read_extent_buffer(eb, (char *)(result), \
((unsigned long)(ptr)) + \
offsetof(type, member), \
sizeof(((type *)0)->member)))
__le16 type
Definition: cifsacl.h:1175

◆ SEQ_LAST

#define SEQ_LAST   ((u64)-1)

◆ SEQ_LIST_INIT

#define SEQ_LIST_INIT (   name)    { .list = LIST_HEAD_INIT((name).list), .seq = 0 }

◆ STATIC

#define STATIC   static noinline

◆ write_eb_member

#define write_eb_member (   eb,
  ptr,
  type,
  member,
  result 
)
Value:
(\
write_extent_buffer(eb, (char *)(result), \
((unsigned long)(ptr)) + \
offsetof(type, member), \
sizeof(((type *)0)->member)))
__le16 type
Definition: cifsacl.h:1175

Typedef Documentation

◆ btrfs_changed_cb_t

typedef int(* btrfs_changed_cb_t) (struct btrfs_path *left_path, struct btrfs_path *right_path, struct btrfs_key *key, enum btrfs_compare_tree_result result, void *ctx)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
READA_NONE 
READA_BACK 
READA_FORWARD 

◆ btrfs_caching_type

Enumerator
BTRFS_CACHE_NO 
BTRFS_CACHE_STARTED 
BTRFS_CACHE_FAST 
BTRFS_CACHE_FINISHED 
BTRFS_CACHE_ERROR 

◆ btrfs_compare_tree_result

Enumerator
BTRFS_COMPARE_TREE_NEW 
BTRFS_COMPARE_TREE_DELETED 
BTRFS_COMPARE_TREE_CHANGED 
BTRFS_COMPARE_TREE_SAME 

◆ btrfs_disk_cache_state

Enumerator
BTRFS_DC_WRITTEN 
BTRFS_DC_ERROR 
BTRFS_DC_CLEAR 
BTRFS_DC_SETUP 

◆ btrfs_flush_state

Enumerator
FLUSH_DELAYED_ITEMS_NR 
FLUSH_DELAYED_ITEMS 
FLUSH_DELALLOC 
FLUSH_DELALLOC_WAIT 
ALLOC_CHUNK 
COMMIT_TRANS 

◆ btrfs_inline_ref_type

Enumerator
BTRFS_REF_TYPE_INVALID 
BTRFS_REF_TYPE_BLOCK 
BTRFS_REF_TYPE_DATA 
BTRFS_REF_TYPE_ANY 

◆ btrfs_orphan_cleanup_state

Enumerator
ORPHAN_CLEANUP_STARTED 
ORPHAN_CLEANUP_DONE 

◆ btrfs_reserve_flush_enum

Enumerator
BTRFS_RESERVE_NO_FLUSH 
BTRFS_RESERVE_FLUSH_LIMIT 
BTRFS_RESERVE_FLUSH_ALL 

Function Documentation

◆ __attribute__()

struct btrfs_header __attribute__ ( (__packed__)  )

◆ __btrfs_abort_transaction()

__cold void __btrfs_abort_transaction ( struct btrfs_trans_handle trans,
const char *  function,
unsigned int  line,
int  errno 
)
Here is the call graph for this function:

◆ __btrfs_clear_fs_compat_ro()

static void __btrfs_clear_fs_compat_ro ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic

◆ __btrfs_clear_fs_incompat()

static void __btrfs_clear_fs_incompat ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic

◆ __btrfs_del_delalloc_inode()

void __btrfs_del_delalloc_inode ( struct btrfs_root root,
struct btrfs_inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __btrfs_drop_extents()

int __btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
struct btrfs_path path,
u64  start,
u64  end,
u64 *  drop_end,
int  drop_cache,
int  replace_extent,
u32  extent_item_size,
int *  key_inserted 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __btrfs_free_block_rsv()

void __btrfs_free_block_rsv ( struct btrfs_block_rsv rsv)
Here is the caller graph for this function:

◆ __btrfs_fs_compat_ro()

static int __btrfs_fs_compat_ro ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic
Here is the call graph for this function:

◆ __btrfs_fs_incompat()

static bool __btrfs_fs_incompat ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic

◆ __btrfs_set_fs_compat_ro()

static void __btrfs_set_fs_compat_ro ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic

◆ __btrfs_set_fs_incompat()

static void __btrfs_set_fs_incompat ( struct btrfs_fs_info fs_info,
u64  flag 
)
inlinestatic

◆ __printf() [1/2]

static __printf ( ,
 
) const
inlinestatic

◆ __printf() [2/2]

__printf ( ,
 
)

◆ add_new_free_space()

u64 add_new_free_space ( struct btrfs_block_group_cache block_group,
struct btrfs_fs_info info,
u64  start,
u64  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btree_readahead_hook()

int btree_readahead_hook ( struct extent_buffer eb,
int  err 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_account_ro_block_groups_free_space()

u64 btrfs_account_ro_block_groups_free_space ( struct btrfs_space_info sinfo)
Here is the caller graph for this function:

◆ btrfs_add_delayed_iput()

void btrfs_add_delayed_iput ( struct inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_add_inode_defrag()

int btrfs_add_inode_defrag ( struct btrfs_trans_handle trans,
struct btrfs_inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_add_link()

int btrfs_add_link ( struct btrfs_trans_handle trans,
struct btrfs_inode parent_inode,
struct btrfs_inode inode,
const char *  name,
int  name_len,
int  add_backref,
u64  index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_add_raid_kobjects()

void btrfs_add_raid_kobjects ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_add_root_ref()

int btrfs_add_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  root_id,
u64  ref_id,
u64  dirid,
u64  sequence,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_block_rsv()

struct btrfs_block_rsv* btrfs_alloc_block_rsv ( struct btrfs_fs_info fs_info,
unsigned short  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_data_chunk_ondemand()

int btrfs_alloc_data_chunk_ondemand ( struct btrfs_inode inode,
u64  bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_delalloc_work()

struct btrfs_delalloc_work* btrfs_alloc_delalloc_work ( struct inode inode,
int  delay_iput 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_inode()

struct inode* btrfs_alloc_inode ( struct super_block sb)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_logged_file_extent()

int btrfs_alloc_logged_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  root_objectid,
u64  owner,
u64  offset,
struct btrfs_key *  ins 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_path()

struct btrfs_path* btrfs_alloc_path ( void  )

◆ btrfs_alloc_reserved_file_extent()

int btrfs_alloc_reserved_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  owner,
u64  offset,
u64  ram_bytes,
struct btrfs_key *  ins 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_tree_block()

struct extent_buffer* btrfs_alloc_tree_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  parent,
u64  root_objectid,
const struct btrfs_disk_key *  key,
int  level,
u64  hint,
u64  empty_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_alloc_write_mask()

static gfp_t btrfs_alloc_write_mask ( struct address_space *  mapping)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_async_run_delayed_refs()

int btrfs_async_run_delayed_refs ( struct btrfs_fs_info fs_info,
unsigned long  count,
u64  transid,
int  wait 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_auto_defrag_exit()

void __cold btrfs_auto_defrag_exit ( void  )
Here is the caller graph for this function:

◆ btrfs_auto_defrag_init()

int __init btrfs_auto_defrag_init ( void  )
Here is the caller graph for this function:

◆ btrfs_balance_data()

static void btrfs_balance_data ( const struct extent_buffer eb,
const struct btrfs_balance_item *  bi,
struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_balance_meta()

static void btrfs_balance_meta ( const struct extent_buffer eb,
const struct btrfs_balance_item *  bi,
struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_balance_sys()

static void btrfs_balance_sys ( const struct extent_buffer eb,
const struct btrfs_balance_item *  bi,
struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_bin_search()

int btrfs_bin_search ( struct extent_buffer eb,
const struct btrfs_key *  key,
int  level,
int *  slot 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_bio_counter_dec()

static void btrfs_bio_counter_dec ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_bio_counter_inc_blocked()

void btrfs_bio_counter_inc_blocked ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_bio_counter_inc_noblocked()

void btrfs_bio_counter_inc_noblocked ( struct btrfs_fs_info fs_info)
Here is the caller graph for this function:

◆ btrfs_bio_counter_sub()

void btrfs_bio_counter_sub ( struct btrfs_fs_info fs_info,
s64  amount 
)
Here is the caller graph for this function:

◆ btrfs_block_can_be_shared()

int btrfs_block_can_be_shared ( struct btrfs_root root,
struct extent_buffer buf 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_block_rsv_add()

int btrfs_block_rsv_add ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  num_bytes,
enum btrfs_reserve_flush_enum  flush 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_block_rsv_check()

int btrfs_block_rsv_check ( struct btrfs_block_rsv block_rsv,
int  min_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_block_rsv_migrate()

int btrfs_block_rsv_migrate ( struct btrfs_block_rsv src_rsv,
struct btrfs_block_rsv dst_rsv,
u64  num_bytes,
int  update_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_block_rsv_refill()

int btrfs_block_rsv_refill ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  min_reserved,
enum btrfs_reserve_flush_enum  flush 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_block_rsv_release()

void btrfs_block_rsv_release ( struct btrfs_fs_info fs_info,
struct btrfs_block_rsv block_rsv,
u64  num_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_calc_trans_metadata_size()

static u64 btrfs_calc_trans_metadata_size ( struct btrfs_fs_info fs_info,
unsigned  num_items 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_calc_trunc_metadata_size()

static u64 btrfs_calc_trunc_metadata_size ( struct btrfs_fs_info fs_info,
unsigned  num_items 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_can_relocate()

int btrfs_can_relocate ( struct btrfs_fs_info fs_info,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_check_and_init_root_item()

void btrfs_check_and_init_root_item ( struct btrfs_root_item *  item)
Here is the caller graph for this function:

◆ btrfs_check_data_free_space()

int btrfs_check_data_free_space ( struct inode inode,
struct extent_changeset **  reserved,
u64  start,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_check_dir_item_collision()

int btrfs_check_dir_item_collision ( struct btrfs_root root,
u64  dir,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_check_space_for_delayed_refs()

int btrfs_check_space_for_delayed_refs ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_chunk_item_size()

static unsigned long btrfs_chunk_item_size ( int  num_stripes)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_cleanup_defrag_inodes()

void btrfs_cleanup_defrag_inodes ( struct btrfs_fs_info fs_info)
Here is the caller graph for this function:

◆ btrfs_clear_header_flag()

static int btrfs_clear_header_flag ( struct extent_buffer eb,
u64  flag 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_clear_path_blocking()

void btrfs_clear_path_blocking ( struct btrfs_path p,
struct extent_buffer held,
int  held_rw 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_clear_space_info_full()

void btrfs_clear_space_info_full ( struct btrfs_fs_info info)
Here is the caller graph for this function:

◆ btrfs_clone_file_range()

int btrfs_clone_file_range ( struct file *  file_in,
loff_t  pos_in,
struct file *  file_out,
loff_t  pos_out,
u64  len 
)
Here is the call graph for this function:

◆ btrfs_comp_cpu_keys()

int btrfs_comp_cpu_keys ( const struct btrfs_key *  k1,
const struct btrfs_key *  k2 
)
Here is the caller graph for this function:

◆ btrfs_compare_trees()

int btrfs_compare_trees ( struct btrfs_root left_root,
struct btrfs_root right_root,
btrfs_changed_cb_t  cb,
void *  ctx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_compat_ioctl()

long btrfs_compat_ioctl ( struct file *  file,
unsigned int  cmd,
unsigned long  arg 
)
Here is the caller graph for this function:

◆ btrfs_cond_migrate_bytes()

int btrfs_cond_migrate_bytes ( struct btrfs_fs_info fs_info,
struct btrfs_block_rsv dest,
u64  num_bytes,
int  min_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_cont_expand()

int btrfs_cont_expand ( struct inode inode,
loff_t  oldsize,
loff_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_copy_root()

int btrfs_copy_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer **  cow_ret,
u64  new_root_objectid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_cow_block()

int btrfs_cow_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer parent,
int  parent_slot,
struct extent_buffer **  cow_ret 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_cpu_balance_args_to_disk()

static void btrfs_cpu_balance_args_to_disk ( struct btrfs_disk_balance_args *  disk,
const struct btrfs_balance_args *  cpu 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_cpu_key_to_disk()

static void btrfs_cpu_key_to_disk ( struct btrfs_disk_key *  disk,
const struct btrfs_key *  cpu 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_create_pending_block_groups()

void btrfs_create_pending_block_groups ( struct btrfs_trans_handle trans)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_create_subvol_root()

int btrfs_create_subvol_root ( struct btrfs_trans_handle trans,
struct btrfs_root new_root,
struct btrfs_root parent_root,
u64  new_dirid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_cross_ref_exist()

int btrfs_cross_ref_exist ( struct btrfs_root root,
u64  objectid,
u64  offset,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_csum_bytes_to_leaves()

u64 btrfs_csum_bytes_to_leaves ( struct btrfs_fs_info fs_info,
u64  csum_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_csum_file_blocks()

int btrfs_csum_file_blocks ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_ordered_sum sums 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_csum_one_bio()

blk_status_t btrfs_csum_one_bio ( struct inode inode,
struct bio *  bio,
u64  file_start,
int  contig 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_data_alloc_profile()

u64 btrfs_data_alloc_profile ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_dec_block_group_reservations()

void btrfs_dec_block_group_reservations ( struct btrfs_fs_info fs_info,
const u64  start 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_dec_block_group_ro()

void btrfs_dec_block_group_ro ( struct btrfs_block_group_cache cache)
Here is the caller graph for this function:

◆ btrfs_dec_nocow_writers()

void btrfs_dec_nocow_writers ( struct btrfs_fs_info fs_info,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_dec_ref()

int btrfs_dec_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
int  full_backref 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_decode_error()

static const char const char* btrfs_decode_error ( int  errno)
Here is the caller graph for this function:

◆ btrfs_dedupe_file_range()

ssize_t btrfs_dedupe_file_range ( struct file *  src_file,
u64  loff,
u64  olen,
struct file *  dst_file,
u64  dst_loff 
)
Here is the call graph for this function:

◆ btrfs_defrag_cancelled()

static int btrfs_defrag_cancelled ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_defrag_file()

int btrfs_defrag_file ( struct inode inode,
struct file *  file,
struct btrfs_ioctl_defrag_range_args *  range,
u64  newer_than,
unsigned long  max_pages 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_defrag_leaves()

int btrfs_defrag_leaves ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_csums()

int btrfs_del_csums ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  bytenr,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_inode_ref()

int btrfs_del_inode_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char *  name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
u64 *  index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_item()

static int btrfs_del_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_items()

int btrfs_del_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
int  slot,
int  nr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_orphan_item()

int btrfs_del_orphan_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_root()

int btrfs_del_root ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
const struct btrfs_key *  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_del_root_ref()

int btrfs_del_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  root_id,
u64  ref_id,
u64  dirid,
u64 *  sequence,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delalloc_release_extents()

void btrfs_delalloc_release_extents ( struct btrfs_inode inode,
u64  num_bytes,
bool  qgroup_free 
)

btrfs_delalloc_release_extents - release our outstanding_extents : the inode to balance the reservation for. : the number of bytes we originally reserved with : do we need to free qgroup meta reservation or convert them.

When we reserve space we increase outstanding_extents for the extents we may add. Once we've set the range as delalloc or created our ordered extents we have outstanding_extents to track the real usage, so we use this to free our temporarily tracked outstanding_extents. This must be used in conjunction with btrfs_delalloc_reserve_metadata.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delalloc_release_metadata()

void btrfs_delalloc_release_metadata ( struct btrfs_inode inode,
u64  num_bytes,
bool  qgroup_free 
)

btrfs_delalloc_release_metadata - release a metadata reservation for an inode : the inode to release the reservation for. : the number of bytes we are releasing. : free qgroup reservation or convert it to per-trans reservation

This will release the metadata reservation for an inode. This can be called once we complete IO for a given set of bytes to release their metadata reservations, or on error for the same reason.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delalloc_release_space()

void btrfs_delalloc_release_space ( struct inode inode,
struct extent_changeset reserved,
u64  start,
u64  len,
bool  qgroup_free 
)

btrfs_delalloc_release_space - release data and metadata space for delalloc : inode we're releasing space for : start position of the space already reserved : the len of the space already reserved : the len of the space we consumed or didn't use

This function will release the metadata space that was not used and will decrement ->delalloc_bytes and remove it from the fs_info delalloc_inodes list if there are no delalloc bytes left. Also it will handle the qgroup reserved space.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delalloc_reserve_metadata()

int btrfs_delalloc_reserve_metadata ( struct btrfs_inode inode,
u64  num_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delalloc_reserve_space()

int btrfs_delalloc_reserve_space ( struct inode inode,
struct extent_changeset **  reserved,
u64  start,
u64  len 
)

btrfs_delalloc_reserve_space - reserve data and metadata space for delalloc : inode we're writing to : start range we are writing to : how long the range we are writing to : mandatory parameter, record actually reserved qgroup ranges of current reservation.

This will do the following things

o reserve space in data space info for num bytes and reserve precious corresponding qgroup space (Done in check_data_free_space)

o reserve space for metadata space, based on the number of outstanding extents and how much csums will be needed also reserve metadata space in a per root over-reserve method. o add to the inodes->delalloc_bytes o add it to the fs_info's delalloc inodes list. (Above 3 all done in delalloc_reserve_metadata)

Return 0 for success Return <0 for error(-ENOSPC or -EQUOT)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delayed_refs_qgroup_accounting()

int btrfs_delayed_refs_qgroup_accounting ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

◆ btrfs_delete_one_dir_name()

int btrfs_delete_one_dir_name ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_dir_item *  di 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_delete_unused_bgs()

void btrfs_delete_unused_bgs ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_destroy_cachep()

void __cold btrfs_destroy_cachep ( void  )
Here is the caller graph for this function:

◆ btrfs_destroy_inode()

void btrfs_destroy_inode ( struct inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_dev_extent_chunk_tree_uuid()

static unsigned long btrfs_dev_extent_chunk_tree_uuid ( struct btrfs_dev_extent *  dev)
inlinestatic

◆ btrfs_dev_stats_value()

static u64 btrfs_dev_stats_value ( const struct extent_buffer eb,
const struct btrfs_dev_stats_item *  ptr,
int  index 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_device_fsid()

static unsigned long btrfs_device_fsid ( struct btrfs_dev_item *  d)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_device_total_bytes()

static u64 btrfs_device_total_bytes ( struct extent_buffer eb,
struct btrfs_dev_item *  s 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_device_uuid()

static unsigned long btrfs_device_uuid ( struct btrfs_dev_item *  d)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_dir_item_key()

static void btrfs_dir_item_key ( const struct extent_buffer eb,
const struct btrfs_dir_item *  item,
struct btrfs_disk_key *  key 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_dir_item_key_to_cpu()

static void btrfs_dir_item_key_to_cpu ( const struct extent_buffer eb,
const struct btrfs_dir_item *  item,
struct btrfs_key *  key 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_dirty_pages()

int btrfs_dirty_pages ( struct inode inode,
struct page **  pages,
size_t  num_pages,
loff_t  pos,
size_t  write_bytes,
struct extent_state **  cached 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_discard_extent()

int btrfs_discard_extent ( struct btrfs_fs_info fs_info,
u64  bytenr,
u64  num_bytes,
u64 *  actual_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_disk_balance_args_to_cpu()

static void btrfs_disk_balance_args_to_cpu ( struct btrfs_balance_args *  cpu,
const struct btrfs_disk_balance_args *  disk 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_disk_key_to_cpu()

static void btrfs_disk_key_to_cpu ( struct btrfs_key *  cpu,
const struct btrfs_disk_key *  disk 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_drop_extent_cache()

void btrfs_drop_extent_cache ( struct btrfs_inode inode,
u64  start,
u64  end,
int  skip_pinned 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_drop_extents()

int btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
u64  start,
u64  end,
int  drop_cache 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_drop_inode()

int btrfs_drop_inode ( struct inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_drop_snapshot()

int __must_check btrfs_drop_snapshot ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
int  update_ref,
int  for_reloc 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_drop_subtree()

int btrfs_drop_subtree ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer node,
struct extent_buffer parent 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_duplicate_item()

int btrfs_duplicate_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const struct btrfs_key *  new_key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_end_write_no_snapshotting()

void btrfs_end_write_no_snapshotting ( struct btrfs_root root)
Here is the caller graph for this function:

◆ btrfs_error_unpin_extent_range()

int btrfs_error_unpin_extent_range ( struct btrfs_fs_info fs_info,
u64  start,
u64  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_evict_inode()

void btrfs_evict_inode ( struct inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_exclude_logged_extents()

int btrfs_exclude_logged_extents ( struct btrfs_fs_info fs_info,
struct extent_buffer eb 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_exit_sysfs()

void __cold btrfs_exit_sysfs ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_extend_item()

void btrfs_extend_item ( struct btrfs_fs_info fs_info,
struct btrfs_path path,
u32  data_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_extent_inline_ref_size()

static u32 btrfs_extent_inline_ref_size ( int  type)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_extent_item_to_extent_map()

void btrfs_extent_item_to_extent_map ( struct btrfs_inode inode,
const struct btrfs_path path,
struct btrfs_file_extent_item *  fi,
const bool  new_inline,
struct extent_map em 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_extent_readonly()

int btrfs_extent_readonly ( struct btrfs_fs_info fs_info,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_extref_hash()

static u64 btrfs_extref_hash ( u64  parent_objectid,
const char *  name,
int  len 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_fdatawrite_range()

int btrfs_fdatawrite_range ( struct inode inode,
loff_t  start,
loff_t  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_file_extent_calc_inline_size()

static u32 btrfs_file_extent_calc_inline_size ( u32  datasize)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_file_extent_inline_item_len()

static u32 btrfs_file_extent_inline_item_len ( const struct extent_buffer eb,
struct btrfs_item e 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_file_extent_inline_len()

static u32 btrfs_file_extent_inline_len ( const struct extent_buffer eb,
int  slot,
const struct btrfs_file_extent_item *  fi 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_file_extent_inline_start()

static unsigned long btrfs_file_extent_inline_start ( const struct btrfs_file_extent_item *  e)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_find_item()

int btrfs_find_item ( struct btrfs_root fs_root,
struct btrfs_path path,
u64  inum,
u64  ioff,
u8  key_type,
struct btrfs_key *  found_key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_find_name_in_backref()

int btrfs_find_name_in_backref ( struct extent_buffer leaf,
int  slot,
const char *  name,
int  name_len,
struct btrfs_inode_ref **  ref_ret 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_find_name_in_ext_backref()

int btrfs_find_name_in_ext_backref ( struct extent_buffer leaf,
int  slot,
u64  ref_objectid,
const char *  name,
int  name_len,
struct btrfs_inode_extref **  extref_ret 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_find_next_key()

int btrfs_find_next_key ( struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key *  key,
int  lowest_level,
u64  min_trans 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_find_orphan_item()

int btrfs_find_orphan_item ( struct btrfs_root root,
u64  offset 
)
Here is the caller graph for this function:

◆ btrfs_find_orphan_roots()

int btrfs_find_orphan_roots ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_find_root()

int btrfs_find_root ( struct btrfs_root root,
const struct btrfs_key *  search_key,
struct btrfs_path path,
struct btrfs_root_item *  root_item,
struct btrfs_key *  root_key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_finish_extent_commit()

int btrfs_finish_extent_commit ( struct btrfs_trans_handle trans)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_force_chunk_alloc()

int btrfs_force_chunk_alloc ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_and_pin_reserved_extent()

int btrfs_free_and_pin_reserved_extent ( struct btrfs_fs_info fs_info,
u64  start,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_block_groups()

int btrfs_free_block_groups ( struct btrfs_fs_info info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_block_rsv()

void btrfs_free_block_rsv ( struct btrfs_fs_info fs_info,
struct btrfs_block_rsv rsv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_extent()

int btrfs_free_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  root_objectid,
u64  owner,
u64  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_path()

void btrfs_free_path ( struct btrfs_path p)
Here is the call graph for this function:

◆ btrfs_free_reserved_data_space()

void btrfs_free_reserved_data_space ( struct inode inode,
struct extent_changeset reserved,
u64  start,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_reserved_data_space_noquota()

void btrfs_free_reserved_data_space_noquota ( struct inode inode,
u64  start,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_reserved_extent()

int btrfs_free_reserved_extent ( struct btrfs_fs_info fs_info,
u64  start,
u64  len,
int  delalloc 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_free_space_key()

static void btrfs_free_space_key ( const struct extent_buffer eb,
const struct btrfs_free_space_header *  h,
struct btrfs_disk_key *  key 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_free_tree_block()

void btrfs_free_tree_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
u64  parent,
int  last_ref 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_fs_closing()

static int btrfs_fs_closing ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_get_block_group()

void btrfs_get_block_group ( struct btrfs_block_group_cache cache)
Here is the caller graph for this function:

◆ btrfs_get_block_group_info()

void btrfs_get_block_group_info ( struct list_head *  groups_list,
struct btrfs_ioctl_space_info space 
)
Here is the caller graph for this function:

◆ btrfs_get_block_group_trimming()

void btrfs_get_block_group_trimming ( struct btrfs_block_group_cache cache)
Here is the caller graph for this function:

◆ btrfs_get_extent()

struct extent_map* btrfs_get_extent ( struct btrfs_inode inode,
struct page *  page,
size_t  pg_offset,
u64  start,
u64  end,
int  create 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_get_extent_fiemap()

struct extent_map* btrfs_get_extent_fiemap ( struct btrfs_inode inode,
struct page *  page,
size_t  pg_offset,
u64  start,
u64  len,
int  create 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_get_extent_inline_ref_type()

int btrfs_get_extent_inline_ref_type ( const struct extent_buffer eb,
struct btrfs_extent_inline_ref *  iref,
enum btrfs_inline_ref_type  is_data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_get_tree_mod_seq()

u64 btrfs_get_tree_mod_seq ( struct btrfs_fs_info fs_info,
struct seq_list elem 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_header_backref_rev()

static int btrfs_header_backref_rev ( const struct extent_buffer eb)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_header_chunk_tree_uuid()

static unsigned long btrfs_header_chunk_tree_uuid ( const struct extent_buffer eb)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_header_flag()

static int btrfs_header_flag ( const struct extent_buffer eb,
u64  flag 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_header_fsid()

static unsigned long btrfs_header_fsid ( void  )
inlinestatic
Here is the caller graph for this function:

◆ btrfs_iget()

struct inode* btrfs_iget ( struct super_block s,
struct btrfs_key *  location,
struct btrfs_root root,
int *  was_new 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_inc_block_group_ro()

int btrfs_inc_block_group_ro ( struct btrfs_fs_info fs_info,
struct btrfs_block_group_cache cache 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_inc_extent_ref()

int btrfs_inc_extent_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  root_objectid,
u64  owner,
u64  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_inc_nocow_writers()

bool btrfs_inc_nocow_writers ( struct btrfs_fs_info fs_info,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_inc_ref()

int btrfs_inc_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
int  full_backref 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_acl()

static int btrfs_init_acl ( struct btrfs_trans_handle trans,
struct inode inode,
struct inode dir 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_async_reclaim_work()

void btrfs_init_async_reclaim_work ( struct work_struct *  work)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_block_rsv()

void btrfs_init_block_rsv ( struct btrfs_block_rsv rsv,
unsigned short  type 
)
Here is the caller graph for this function:

◆ btrfs_init_cachep()

int __init btrfs_init_cachep ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_full_stripe_locks_tree()

static void btrfs_init_full_stripe_locks_tree ( struct btrfs_full_stripe_locks_tree locks_root)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_map_token()

static void btrfs_init_map_token ( struct btrfs_map_token token)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_init_metadata_block_rsv()

void btrfs_init_metadata_block_rsv ( struct btrfs_fs_info fs_info,
struct btrfs_block_rsv rsv,
unsigned short  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_reloc_root()

int btrfs_init_reloc_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_space_info()

int btrfs_init_space_info ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_init_sysfs()

int __init btrfs_init_sysfs ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_inode_sectorsize()

static u32 btrfs_inode_sectorsize ( const struct inode inode)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_dir_item()

int btrfs_insert_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char *  name,
int  name_len,
struct btrfs_inode dir,
struct btrfs_key *  location,
u8  type,
u64  index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_empty_inode()

int btrfs_insert_empty_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_empty_item()

static int btrfs_insert_empty_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const struct btrfs_key *  key,
u32  data_size 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_empty_items()

int btrfs_insert_empty_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const struct btrfs_key *  cpu_key,
u32 *  data_size,
int  nr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_file_extent()

int btrfs_insert_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  objectid,
u64  pos,
u64  disk_offset,
u64  disk_num_bytes,
u64  num_bytes,
u64  offset,
u64  ram_bytes,
u8  compression,
u8  encryption,
u16  other_encoding 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_inode_ref()

int btrfs_insert_inode_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char *  name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
u64  index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_item()

int btrfs_insert_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const struct btrfs_key *  key,
void *  data,
u32  data_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_orphan_item()

int btrfs_insert_orphan_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_root()

int btrfs_insert_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const struct btrfs_key *  key,
struct btrfs_root_item *  item 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_insert_xattr_item()

int btrfs_insert_xattr_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid,
const char *  name,
u16  name_len,
const void *  data,
u16  data_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_invalidate_inodes()

void btrfs_invalidate_inodes ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_ioctl()

long btrfs_ioctl ( struct file *  file,
unsigned int  cmd,
unsigned long  arg 
)
Here is the caller graph for this function:

◆ btrfs_ioctl_get_supported_features()

int btrfs_ioctl_get_supported_features ( void __user *  arg)
Here is the caller graph for this function:

◆ btrfs_is_empty_uuid()

int btrfs_is_empty_uuid ( u8 *  uuid)
Here is the caller graph for this function:

◆ btrfs_is_leaf()

static int btrfs_is_leaf ( const struct extent_buffer eb)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_is_testing()

static int btrfs_is_testing ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_item_end()

static u32 btrfs_item_end ( const struct extent_buffer eb,
struct btrfs_item item 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_item_end_nr()

static u32 btrfs_item_end_nr ( const struct extent_buffer eb,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_item_key()

static void btrfs_item_key ( const struct extent_buffer eb,
struct btrfs_disk_key *  disk_key,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_item_key_to_cpu()

static void btrfs_item_key_to_cpu ( const struct extent_buffer eb,
struct btrfs_key *  key,
int  nr 
)
inlinestatic
Here is the call graph for this function:

◆ btrfs_item_nr()

static struct btrfs_item* btrfs_item_nr ( int  nr)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_item_nr_offset()

static unsigned long btrfs_item_nr_offset ( int  nr)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_item_offset_nr()

static u32 btrfs_item_offset_nr ( const struct extent_buffer eb,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_item_size_nr()

static u32 btrfs_item_size_nr ( const struct extent_buffer eb,
int  nr 
)
inlinestatic
Here is the call graph for this function:

◆ btrfs_key_type()

static u8 btrfs_key_type ( const struct btrfs_key *  key)
inlinestatic

◆ BTRFS_LEAF_DATA_SIZE()

static u32 BTRFS_LEAF_DATA_SIZE ( const struct btrfs_fs_info info)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_leaf_free_space()

int btrfs_leaf_free_space ( struct btrfs_fs_info fs_info,
struct extent_buffer leaf 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lock_root_node()

struct extent_buffer* btrfs_lock_root_node ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_bio_sums()

blk_status_t btrfs_lookup_bio_sums ( struct inode inode,
struct bio *  bio,
u32 *  dst 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_bio_sums_dio()

blk_status_t btrfs_lookup_bio_sums_dio ( struct inode inode,
struct bio *  bio,
u64  logical_offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_block_group()

struct btrfs_block_group_cache* btrfs_lookup_block_group ( struct btrfs_fs_info info,
u64  bytenr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_csums_range()

int btrfs_lookup_csums_range ( struct btrfs_root root,
u64  start,
u64  end,
struct list_head *  list,
int  search_commit 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_data_extent()

int btrfs_lookup_data_extent ( struct btrfs_fs_info fs_info,
u64  start,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_dentry()

struct inode* btrfs_lookup_dentry ( struct inode dir,
struct dentry *  dentry 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_dir_index_item()

struct btrfs_dir_item* btrfs_lookup_dir_index_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
u64  objectid,
const char *  name,
int  name_len,
int  mod 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_dir_item()

struct btrfs_dir_item* btrfs_lookup_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char *  name,
int  name_len,
int  mod 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_extent_info()

int btrfs_lookup_extent_info ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  bytenr,
u64  offset,
int  metadata,
u64 *  refs,
u64 *  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_file_extent()

int btrfs_lookup_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid,
u64  bytenr,
int  mod 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_inode()

int btrfs_lookup_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key *  location,
int  mod 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_inode_extref()

struct btrfs_inode_extref* btrfs_lookup_inode_extref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const char *  name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
int  ins_len,
int  cow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_lookup_xattr()

struct btrfs_dir_item* btrfs_lookup_xattr ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char *  name,
u16  name_len,
int  mod 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_make_block_group()

int btrfs_make_block_group ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  bytes_used,
u64  type,
u64  chunk_offset,
u64  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_mark_extent_written()

int btrfs_mark_extent_written ( struct btrfs_trans_handle trans,
struct btrfs_inode inode,
u64  start,
u64  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_match_dir_item_name()

struct btrfs_dir_item* btrfs_match_dir_item_name ( struct btrfs_fs_info fs_info,
struct btrfs_path path,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BTRFS_MAX_INLINE_DATA_SIZE()

static u32 BTRFS_MAX_INLINE_DATA_SIZE ( const struct btrfs_fs_info info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BTRFS_MAX_ITEM_SIZE()

static u32 BTRFS_MAX_ITEM_SIZE ( const struct btrfs_fs_info info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BTRFS_MAX_XATTR_SIZE()

static u32 BTRFS_MAX_XATTR_SIZE ( const struct btrfs_fs_info info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_merge_bio_hook()

int btrfs_merge_bio_hook ( struct page *  page,
unsigned long  offset,
size_t  size,
struct bio *  bio,
unsigned long  bio_flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_metadata_alloc_profile()

u64 btrfs_metadata_alloc_profile ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_mixed_space_info()

static bool btrfs_mixed_space_info ( struct btrfs_space_info space_info)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_name_hash()

static u64 btrfs_name_hash ( const char *  name,
int  len 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_need_cleaner_sleep()

static int btrfs_need_cleaner_sleep ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_next_item()

static int btrfs_next_item ( struct btrfs_root root,
struct btrfs_path p 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_next_leaf()

int btrfs_next_leaf ( struct btrfs_root root,
struct btrfs_path path 
)
Here is the call graph for this function:

◆ btrfs_next_old_item()

static int btrfs_next_old_item ( struct btrfs_root root,
struct btrfs_path p,
u64  time_seq 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_next_old_leaf()

int btrfs_next_old_leaf ( struct btrfs_root root,
struct btrfs_path path,
u64  time_seq 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_node_blockptr()

static u64 btrfs_node_blockptr ( struct extent_buffer eb,
int  nr 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_node_key()

void btrfs_node_key ( const struct extent_buffer eb,
struct btrfs_disk_key *  disk_key,
int  nr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_node_key_ptr_offset()

static unsigned long btrfs_node_key_ptr_offset ( int  nr)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_node_key_to_cpu()

static void btrfs_node_key_to_cpu ( const struct extent_buffer eb,
struct btrfs_key *  key,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_node_ptr_generation()

static u64 btrfs_node_ptr_generation ( struct extent_buffer eb,
int  nr 
)
inlinestatic
Here is the caller graph for this function:

◆ BTRFS_NODEPTRS_PER_BLOCK()

static u32 BTRFS_NODEPTRS_PER_BLOCK ( const struct btrfs_fs_info info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_old_root_level()

int btrfs_old_root_level ( struct btrfs_root root,
u64  time_seq 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_orphan_add()

int btrfs_orphan_add ( struct btrfs_trans_handle trans,
struct btrfs_inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_orphan_cleanup()

int btrfs_orphan_cleanup ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_orphan_commit_root()

void btrfs_orphan_commit_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_orphan_release_metadata()

void btrfs_orphan_release_metadata ( struct btrfs_inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_orphan_reserve_metadata()

int btrfs_orphan_reserve_metadata ( struct btrfs_trans_handle trans,
struct btrfs_inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_page_mkwrite()

int btrfs_page_mkwrite ( struct vm_fault *  vmf)
Here is the call graph for this function:

◆ btrfs_parse_options()

int btrfs_parse_options ( struct btrfs_fs_info info,
char *  options,
unsigned long  new_flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_pin_extent()

int btrfs_pin_extent ( struct btrfs_fs_info fs_info,
u64  bytenr,
u64  num,
int  reserved 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_pin_extent_for_log_replay()

int btrfs_pin_extent_for_log_replay ( struct btrfs_fs_info fs_info,
u64  bytenr,
u64  num_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_prealloc_file_range()

int btrfs_prealloc_file_range ( struct inode inode,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 *  alloc_hint 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_prealloc_file_range_trans()

int btrfs_prealloc_file_range_trans ( struct inode inode,
struct btrfs_trans_handle trans,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 *  alloc_hint 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_prepare_extent_commit()

void btrfs_prepare_extent_commit ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_prev_leaf()

int btrfs_prev_leaf ( struct btrfs_root root,
struct btrfs_path path 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_previous_extent_item()

int btrfs_previous_extent_item ( struct btrfs_root root,
struct btrfs_path path,
u64  min_objectid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_previous_item()

int btrfs_previous_item ( struct btrfs_root root,
struct btrfs_path path,
u64  min_objectid,
int  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_put_block_group()

void btrfs_put_block_group ( struct btrfs_block_group_cache cache)
Here is the caller graph for this function:

◆ btrfs_put_block_group_cache()

void btrfs_put_block_group_cache ( struct btrfs_fs_info info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_put_block_group_trimming()

void btrfs_put_block_group_trimming ( struct btrfs_block_group_cache cache)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_put_tree_mod_seq()

void btrfs_put_tree_mod_seq ( struct btrfs_fs_info fs_info,
struct seq_list elem 
)
Here is the caller graph for this function:

◆ btrfs_read_block_groups()

int btrfs_read_block_groups ( struct btrfs_fs_info info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_read_lock_root_node()

struct extent_buffer* btrfs_read_lock_root_node ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reada_add()

struct reada_control* btrfs_reada_add ( struct btrfs_root root,
struct btrfs_key *  start,
struct btrfs_key *  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reada_detach()

void btrfs_reada_detach ( void *  handle)
Here is the call graph for this function:

◆ btrfs_reada_wait()

int btrfs_reada_wait ( void *  handle)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_readpage()

int btrfs_readpage ( struct file *  file,
struct page *  page 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_realloc_node()

int btrfs_realloc_node ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer parent,
int  start_slot,
u64 *  last_ret,
struct btrfs_key *  progress 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_recover_relocation()

int btrfs_recover_relocation ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_release_file()

int btrfs_release_file ( struct inode inode,
struct file *  file 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_release_path()

void btrfs_release_path ( struct btrfs_path p)
Here is the call graph for this function:

◆ btrfs_reloc_clone_csums()

int btrfs_reloc_clone_csums ( struct inode inode,
u64  file_pos,
u64  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reloc_cow_block()

int btrfs_reloc_cow_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer cow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reloc_post_snapshot()

int btrfs_reloc_post_snapshot ( struct btrfs_trans_handle trans,
struct btrfs_pending_snapshot pending 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reloc_pre_snapshot()

void btrfs_reloc_pre_snapshot ( struct btrfs_pending_snapshot pending,
u64 *  bytes_to_reserve 
)
Here is the caller graph for this function:

◆ btrfs_relocate_block_group()

int btrfs_relocate_block_group ( struct btrfs_fs_info fs_info,
u64  group_start 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_remove_block_group()

int btrfs_remove_block_group ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  group_start,
struct extent_map em 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_reserve_extent()

int btrfs_reserve_extent ( struct btrfs_root root,
u64  ram_bytes,
u64  num_bytes,
u64  min_alloc_size,
u64  empty_size,
u64  hint_byte,
struct btrfs_key *  ins,
int  is_data,
int  delalloc 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_root_dead()

static bool btrfs_root_dead ( const struct btrfs_root root)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_root_node()

struct extent_buffer* btrfs_root_node ( struct btrfs_root root)
Here is the caller graph for this function:

◆ btrfs_root_readonly()

static bool btrfs_root_readonly ( const struct btrfs_root root)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_run_defrag_inodes()

int btrfs_run_defrag_inodes ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_run_delayed_iputs()

void btrfs_run_delayed_iputs ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_run_delayed_refs()

int btrfs_run_delayed_refs ( struct btrfs_trans_handle trans,
unsigned long  count 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_sb()

static struct btrfs_fs_info* btrfs_sb ( struct super_block sb)
static

◆ btrfs_scrub_cancel()

int btrfs_scrub_cancel ( struct btrfs_fs_info info)
Here is the caller graph for this function:

◆ btrfs_scrub_cancel_dev()

int btrfs_scrub_cancel_dev ( struct btrfs_fs_info info,
struct btrfs_device dev 
)
Here is the caller graph for this function:

◆ btrfs_scrub_continue()

void btrfs_scrub_continue ( struct btrfs_fs_info fs_info)
Here is the caller graph for this function:

◆ btrfs_scrub_dev()

int btrfs_scrub_dev ( struct btrfs_fs_info fs_info,
u64  devid,
u64  start,
u64  end,
struct btrfs_scrub_progress progress,
int  readonly,
int  is_dev_replace 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_scrub_pause()

void btrfs_scrub_pause ( struct btrfs_fs_info fs_info)
Here is the caller graph for this function:

◆ btrfs_scrub_progress()

int btrfs_scrub_progress ( struct btrfs_fs_info fs_info,
u64  devid,
struct btrfs_scrub_progress *  progress 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_search_dir_index_item()

struct btrfs_dir_item* btrfs_search_dir_index_item ( struct btrfs_root root,
struct btrfs_path path,
u64  dirid,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_search_forward()

int btrfs_search_forward ( struct btrfs_root root,
struct btrfs_key *  min_key,
struct btrfs_path path,
u64  min_trans 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_search_old_slot()

int btrfs_search_old_slot ( struct btrfs_root root,
const struct btrfs_key *  key,
struct btrfs_path p,
u64  time_seq 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_search_slot()

int btrfs_search_slot ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const struct btrfs_key *  key,
struct btrfs_path p,
int  ins_len,
int  cow 
)
Here is the call graph for this function:

◆ btrfs_search_slot_for_read()

int btrfs_search_slot_for_read ( struct btrfs_root root,
const struct btrfs_key *  key,
struct btrfs_path p,
int  find_higher,
int  return_any 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_balance_data()

static void btrfs_set_balance_data ( struct extent_buffer eb,
struct btrfs_balance_item *  bi,
const struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_balance_meta()

static void btrfs_set_balance_meta ( struct extent_buffer eb,
struct btrfs_balance_item *  bi,
const struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_balance_sys()

static void btrfs_set_balance_sys ( struct extent_buffer eb,
struct btrfs_balance_item *  bi,
const struct btrfs_disk_balance_args *  ba 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_dev_stats_value()

static void btrfs_set_dev_stats_value ( struct extent_buffer eb,
struct btrfs_dev_stats_item *  ptr,
int  index,
u64  val 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_device_total_bytes()

static void btrfs_set_device_total_bytes ( struct extent_buffer eb,
struct btrfs_dev_item *  s,
u64  val 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_dir_item_key()

static void btrfs_set_dir_item_key ( struct extent_buffer eb,
struct btrfs_dir_item *  item,
const struct btrfs_disk_key *  key 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_disk_extent_flags()

int btrfs_set_disk_extent_flags ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  bytenr,
u64  num_bytes,
u64  flags,
int  level,
int  is_data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_extent_delalloc()

int btrfs_set_extent_delalloc ( struct inode inode,
u64  start,
u64  end,
unsigned int  extra_bits,
struct extent_state **  cached_state,
int  dedupe 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_free_space_key()

static void btrfs_set_free_space_key ( struct extent_buffer eb,
struct btrfs_free_space_header *  h,
const struct btrfs_disk_key *  key 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_header_backref_rev()

static void btrfs_set_header_backref_rev ( struct extent_buffer eb,
int  rev 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_header_flag()

static int btrfs_set_header_flag ( struct extent_buffer eb,
u64  flag 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_inode_index()

int btrfs_set_inode_index ( struct btrfs_inode dir,
u64 *  index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_item_key()

static void btrfs_set_item_key ( struct extent_buffer eb,
struct btrfs_disk_key *  disk_key,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_item_key_safe()

void btrfs_set_item_key_safe ( struct btrfs_fs_info fs_info,
struct btrfs_path path,
const struct btrfs_key *  new_key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_key_type()

static void btrfs_set_key_type ( struct btrfs_key *  key,
u8  val 
)
inlinestatic

◆ btrfs_set_node_blockptr()

static void btrfs_set_node_blockptr ( struct extent_buffer eb,
int  nr,
u64  val 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_node_key()

static void btrfs_set_node_key ( struct extent_buffer eb,
struct btrfs_disk_key *  disk_key,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_node_ptr_generation()

static void btrfs_set_node_ptr_generation ( struct extent_buffer eb,
int  nr,
u64  val 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_set_path_blocking()

void btrfs_set_path_blocking ( struct btrfs_path p)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_range_writeback()

void btrfs_set_range_writeback ( void *  private_data,
u64  start,
u64  end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_set_root_node()

void btrfs_set_root_node ( struct btrfs_root_item *  item,
struct extent_buffer node 
)
Here is the caller graph for this function:

◆ btrfs_set_tree_block_key()

static void btrfs_set_tree_block_key ( struct extent_buffer eb,
struct btrfs_tree_block_info *  item,
struct btrfs_disk_key *  key 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BTRFS_SETGET_FUNCS() [1/119]

BTRFS_SETGET_FUNCS ( device_type  ,
struct btrfs_dev_item  ,
type  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [2/119]

BTRFS_SETGET_FUNCS ( device_bytes_used  ,
struct btrfs_dev_item  ,
bytes_used  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [3/119]

BTRFS_SETGET_FUNCS ( device_io_align  ,
struct btrfs_dev_item  ,
io_align  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [4/119]

BTRFS_SETGET_FUNCS ( device_io_width  ,
struct btrfs_dev_item  ,
io_width  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [5/119]

BTRFS_SETGET_FUNCS ( device_start_offset  ,
struct btrfs_dev_item  ,
start_offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [6/119]

BTRFS_SETGET_FUNCS ( device_sector_size  ,
struct btrfs_dev_item  ,
sector_size  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [7/119]

BTRFS_SETGET_FUNCS ( device_id  ,
struct btrfs_dev_item  ,
devid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [8/119]

BTRFS_SETGET_FUNCS ( device_group  ,
struct btrfs_dev_item  ,
dev_group  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [9/119]

BTRFS_SETGET_FUNCS ( device_seek_speed  ,
struct btrfs_dev_item  ,
seek_speed  ,
 
)

◆ BTRFS_SETGET_FUNCS() [10/119]

BTRFS_SETGET_FUNCS ( device_bandwidth  ,
struct btrfs_dev_item  ,
bandwidth  ,
 
)

◆ BTRFS_SETGET_FUNCS() [11/119]

BTRFS_SETGET_FUNCS ( device_generation  ,
struct btrfs_dev_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [12/119]

BTRFS_SETGET_FUNCS ( chunk_length  ,
struct btrfs_chunk  ,
length  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [13/119]

BTRFS_SETGET_FUNCS ( chunk_owner  ,
struct btrfs_chunk  ,
owner  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [14/119]

BTRFS_SETGET_FUNCS ( chunk_stripe_len  ,
struct btrfs_chunk  ,
stripe_len  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [15/119]

BTRFS_SETGET_FUNCS ( chunk_io_align  ,
struct btrfs_chunk  ,
io_align  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [16/119]

BTRFS_SETGET_FUNCS ( chunk_io_width  ,
struct btrfs_chunk  ,
io_width  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [17/119]

BTRFS_SETGET_FUNCS ( chunk_sector_size  ,
struct btrfs_chunk  ,
sector_size  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [18/119]

BTRFS_SETGET_FUNCS ( chunk_type  ,
struct btrfs_chunk  ,
type  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [19/119]

BTRFS_SETGET_FUNCS ( chunk_num_stripes  ,
struct btrfs_chunk  ,
num_stripes  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [20/119]

BTRFS_SETGET_FUNCS ( chunk_sub_stripes  ,
struct btrfs_chunk  ,
sub_stripes  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [21/119]

BTRFS_SETGET_FUNCS ( stripe_devid  ,
struct btrfs_stripe  ,
devid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [22/119]

BTRFS_SETGET_FUNCS ( stripe_offset  ,
struct btrfs_stripe  ,
offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [23/119]

BTRFS_SETGET_FUNCS ( disk_block_group_used  ,
struct btrfs_block_group_item  ,
used  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [24/119]

BTRFS_SETGET_FUNCS ( disk_block_group_chunk_objectid  ,
struct btrfs_block_group_item  ,
chunk_objectid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [25/119]

BTRFS_SETGET_FUNCS ( disk_block_group_flags  ,
struct btrfs_block_group_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [26/119]

BTRFS_SETGET_FUNCS ( free_space_extent_count  ,
struct btrfs_free_space_info  ,
extent_count  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [27/119]

BTRFS_SETGET_FUNCS ( free_space_flags  ,
struct btrfs_free_space_info  ,
flags  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [28/119]

BTRFS_SETGET_FUNCS ( inode_ref_name_len  ,
struct btrfs_inode_ref  ,
name_len  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [29/119]

BTRFS_SETGET_FUNCS ( inode_ref_index  ,
struct btrfs_inode_ref  ,
index  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [30/119]

BTRFS_SETGET_FUNCS ( inode_extref_parent  ,
struct btrfs_inode_extref  ,
parent_objectid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [31/119]

BTRFS_SETGET_FUNCS ( inode_extref_name_len  ,
struct btrfs_inode_extref  ,
name_len  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [32/119]

BTRFS_SETGET_FUNCS ( inode_extref_index  ,
struct btrfs_inode_extref  ,
index  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [33/119]

BTRFS_SETGET_FUNCS ( inode_generation  ,
struct btrfs_inode_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [34/119]

BTRFS_SETGET_FUNCS ( inode_sequence  ,
struct btrfs_inode_item  ,
sequence  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [35/119]

BTRFS_SETGET_FUNCS ( inode_transid  ,
struct btrfs_inode_item  ,
transid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [36/119]

BTRFS_SETGET_FUNCS ( inode_size  ,
struct btrfs_inode_item  ,
size  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [37/119]

BTRFS_SETGET_FUNCS ( inode_nbytes  ,
struct btrfs_inode_item  ,
nbytes  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [38/119]

BTRFS_SETGET_FUNCS ( inode_block_group  ,
struct btrfs_inode_item  ,
block_group  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [39/119]

BTRFS_SETGET_FUNCS ( inode_nlink  ,
struct btrfs_inode_item  ,
nlink  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [40/119]

BTRFS_SETGET_FUNCS ( inode_uid  ,
struct btrfs_inode_item  ,
uid  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [41/119]

BTRFS_SETGET_FUNCS ( inode_gid  ,
struct btrfs_inode_item  ,
gid  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [42/119]

BTRFS_SETGET_FUNCS ( inode_mode  ,
struct btrfs_inode_item  ,
mode  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [43/119]

BTRFS_SETGET_FUNCS ( inode_rdev  ,
struct btrfs_inode_item  ,
rdev  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [44/119]

BTRFS_SETGET_FUNCS ( inode_flags  ,
struct btrfs_inode_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [45/119]

BTRFS_SETGET_FUNCS ( timespec_sec  ,
struct btrfs_timespec  ,
sec  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [46/119]

BTRFS_SETGET_FUNCS ( timespec_nsec  ,
struct btrfs_timespec  ,
nsec  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [47/119]

BTRFS_SETGET_FUNCS ( dev_extent_chunk_tree  ,
struct btrfs_dev_extent  ,
chunk_tree  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [48/119]

BTRFS_SETGET_FUNCS ( dev_extent_chunk_objectid  ,
struct btrfs_dev_extent  ,
chunk_objectid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [49/119]

BTRFS_SETGET_FUNCS ( dev_extent_chunk_offset  ,
struct btrfs_dev_extent  ,
chunk_offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [50/119]

BTRFS_SETGET_FUNCS ( dev_extent_length  ,
struct btrfs_dev_extent  ,
length  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [51/119]

BTRFS_SETGET_FUNCS ( extent_refs  ,
struct btrfs_extent_item  ,
refs  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [52/119]

BTRFS_SETGET_FUNCS ( extent_generation  ,
struct btrfs_extent_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [53/119]

BTRFS_SETGET_FUNCS ( extent_flags  ,
struct btrfs_extent_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [54/119]

BTRFS_SETGET_FUNCS ( extent_refs_v0  ,
struct btrfs_extent_item_v0  ,
refs  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [55/119]

BTRFS_SETGET_FUNCS ( tree_block_level  ,
struct btrfs_tree_block_info  ,
level  ,
 
)

◆ BTRFS_SETGET_FUNCS() [56/119]

BTRFS_SETGET_FUNCS ( extent_data_ref_root  ,
struct btrfs_extent_data_ref  ,
root  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [57/119]

BTRFS_SETGET_FUNCS ( extent_data_ref_objectid  ,
struct btrfs_extent_data_ref  ,
objectid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [58/119]

BTRFS_SETGET_FUNCS ( extent_data_ref_offset  ,
struct btrfs_extent_data_ref  ,
offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [59/119]

BTRFS_SETGET_FUNCS ( extent_data_ref_count  ,
struct btrfs_extent_data_ref  ,
count  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [60/119]

BTRFS_SETGET_FUNCS ( shared_data_ref_count  ,
struct btrfs_shared_data_ref  ,
count  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [61/119]

BTRFS_SETGET_FUNCS ( extent_inline_ref_type  ,
struct btrfs_extent_inline_ref  ,
type  ,
 
)

◆ BTRFS_SETGET_FUNCS() [62/119]

BTRFS_SETGET_FUNCS ( extent_inline_ref_offset  ,
struct btrfs_extent_inline_ref  ,
offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [63/119]

BTRFS_SETGET_FUNCS ( ref_root_v0  ,
struct btrfs_extent_ref_v0  ,
root  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [64/119]

BTRFS_SETGET_FUNCS ( ref_generation_v0  ,
struct btrfs_extent_ref_v0  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [65/119]

BTRFS_SETGET_FUNCS ( ref_objectid_v0  ,
struct btrfs_extent_ref_v0  ,
objectid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [66/119]

BTRFS_SETGET_FUNCS ( ref_count_v0  ,
struct btrfs_extent_ref_v0  ,
count  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [67/119]

BTRFS_SETGET_FUNCS ( key_blockptr  ,
struct btrfs_key_ptr  ,
blockptr  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [68/119]

BTRFS_SETGET_FUNCS ( key_generation  ,
struct btrfs_key_ptr  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [69/119]

BTRFS_SETGET_FUNCS ( item_offset  ,
struct btrfs_item  ,
offset  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [70/119]

BTRFS_SETGET_FUNCS ( item_size  ,
struct btrfs_item  ,
size  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [71/119]

BTRFS_SETGET_FUNCS ( dir_log_end  ,
struct btrfs_dir_log_item  ,
end  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [72/119]

BTRFS_SETGET_FUNCS ( root_ref_dirid  ,
struct btrfs_root_ref  ,
dirid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [73/119]

BTRFS_SETGET_FUNCS ( root_ref_sequence  ,
struct btrfs_root_ref  ,
sequence  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [74/119]

BTRFS_SETGET_FUNCS ( root_ref_name_len  ,
struct btrfs_root_ref  ,
name_len  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [75/119]

BTRFS_SETGET_FUNCS ( dir_data_len  ,
struct btrfs_dir_item  ,
data_len  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [76/119]

BTRFS_SETGET_FUNCS ( dir_type  ,
struct btrfs_dir_item  ,
type  ,
 
)

◆ BTRFS_SETGET_FUNCS() [77/119]

BTRFS_SETGET_FUNCS ( dir_name_len  ,
struct btrfs_dir_item  ,
name_len  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [78/119]

BTRFS_SETGET_FUNCS ( dir_transid  ,
struct btrfs_dir_item  ,
transid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [79/119]

BTRFS_SETGET_FUNCS ( free_space_entries  ,
struct btrfs_free_space_header  ,
num_entries  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [80/119]

BTRFS_SETGET_FUNCS ( free_space_bitmaps  ,
struct btrfs_free_space_header  ,
num_bitmaps  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [81/119]

BTRFS_SETGET_FUNCS ( free_space_generation  ,
struct btrfs_free_space_header  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [82/119]

BTRFS_SETGET_FUNCS ( disk_root_generation  ,
struct btrfs_root_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [83/119]

BTRFS_SETGET_FUNCS ( disk_root_refs  ,
struct btrfs_root_item  ,
refs  ,
32   
)

◆ BTRFS_SETGET_FUNCS() [84/119]

BTRFS_SETGET_FUNCS ( disk_root_bytenr  ,
struct btrfs_root_item  ,
bytenr  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [85/119]

BTRFS_SETGET_FUNCS ( disk_root_level  ,
struct btrfs_root_item  ,
level  ,
 
)

◆ BTRFS_SETGET_FUNCS() [86/119]

BTRFS_SETGET_FUNCS ( balance_flags  ,
struct btrfs_balance_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [87/119]

BTRFS_SETGET_FUNCS ( file_extent_type  ,
struct btrfs_file_extent_item  ,
type  ,
 
)

◆ BTRFS_SETGET_FUNCS() [88/119]

BTRFS_SETGET_FUNCS ( file_extent_disk_bytenr  ,
struct btrfs_file_extent_item  ,
disk_bytenr  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [89/119]

BTRFS_SETGET_FUNCS ( file_extent_generation  ,
struct btrfs_file_extent_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [90/119]

BTRFS_SETGET_FUNCS ( file_extent_disk_num_bytes  ,
struct btrfs_file_extent_item  ,
disk_num_bytes  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [91/119]

BTRFS_SETGET_FUNCS ( file_extent_offset  ,
struct btrfs_file_extent_item  ,
offset  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [92/119]

BTRFS_SETGET_FUNCS ( file_extent_num_bytes  ,
struct btrfs_file_extent_item  ,
num_bytes  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [93/119]

BTRFS_SETGET_FUNCS ( file_extent_ram_bytes  ,
struct btrfs_file_extent_item  ,
ram_bytes  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [94/119]

BTRFS_SETGET_FUNCS ( file_extent_compression  ,
struct btrfs_file_extent_item  ,
compression  ,
 
)

◆ BTRFS_SETGET_FUNCS() [95/119]

BTRFS_SETGET_FUNCS ( file_extent_encryption  ,
struct btrfs_file_extent_item  ,
encryption  ,
 
)

◆ BTRFS_SETGET_FUNCS() [96/119]

BTRFS_SETGET_FUNCS ( file_extent_other_encoding  ,
struct btrfs_file_extent_item  ,
other_encoding  ,
16   
)

◆ BTRFS_SETGET_FUNCS() [97/119]

BTRFS_SETGET_FUNCS ( qgroup_status_generation  ,
struct btrfs_qgroup_status_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [98/119]

BTRFS_SETGET_FUNCS ( qgroup_status_version  ,
struct btrfs_qgroup_status_item  ,
version  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [99/119]

BTRFS_SETGET_FUNCS ( qgroup_status_flags  ,
struct btrfs_qgroup_status_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [100/119]

BTRFS_SETGET_FUNCS ( qgroup_status_rescan  ,
struct btrfs_qgroup_status_item  ,
rescan  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [101/119]

BTRFS_SETGET_FUNCS ( qgroup_info_generation  ,
struct btrfs_qgroup_info_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [102/119]

BTRFS_SETGET_FUNCS ( qgroup_info_rfer  ,
struct btrfs_qgroup_info_item  ,
rfer  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [103/119]

BTRFS_SETGET_FUNCS ( qgroup_info_rfer_cmpr  ,
struct btrfs_qgroup_info_item  ,
rfer_cmpr  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [104/119]

BTRFS_SETGET_FUNCS ( qgroup_info_excl  ,
struct btrfs_qgroup_info_item  ,
excl  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [105/119]

BTRFS_SETGET_FUNCS ( qgroup_info_excl_cmpr  ,
struct btrfs_qgroup_info_item  ,
excl_cmpr  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [106/119]

BTRFS_SETGET_FUNCS ( qgroup_limit_flags  ,
struct btrfs_qgroup_limit_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [107/119]

BTRFS_SETGET_FUNCS ( qgroup_limit_max_rfer  ,
struct btrfs_qgroup_limit_item  ,
max_rfer  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [108/119]

BTRFS_SETGET_FUNCS ( qgroup_limit_max_excl  ,
struct btrfs_qgroup_limit_item  ,
max_excl  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [109/119]

BTRFS_SETGET_FUNCS ( qgroup_limit_rsv_rfer  ,
struct btrfs_qgroup_limit_item  ,
rsv_rfer  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [110/119]

BTRFS_SETGET_FUNCS ( qgroup_limit_rsv_excl  ,
struct btrfs_qgroup_limit_item  ,
rsv_excl  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [111/119]

BTRFS_SETGET_FUNCS ( dev_replace_src_devid  ,
struct btrfs_dev_replace_item  ,
src_devid  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [112/119]

BTRFS_SETGET_FUNCS ( dev_replace_cont_reading_from_srcdev_mode  ,
struct btrfs_dev_replace_item  ,
cont_reading_from_srcdev_mode  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [113/119]

BTRFS_SETGET_FUNCS ( dev_replace_replace_state  ,
struct btrfs_dev_replace_item  ,
replace_state  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [114/119]

BTRFS_SETGET_FUNCS ( dev_replace_time_started  ,
struct btrfs_dev_replace_item  ,
time_started  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [115/119]

BTRFS_SETGET_FUNCS ( dev_replace_time_stopped  ,
struct btrfs_dev_replace_item  ,
time_stopped  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [116/119]

BTRFS_SETGET_FUNCS ( dev_replace_num_write_errors  ,
struct btrfs_dev_replace_item  ,
num_write_errors  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [117/119]

BTRFS_SETGET_FUNCS ( dev_replace_num_uncorrectable_read_errors  ,
struct btrfs_dev_replace_item  ,
num_uncorrectable_read_errors  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [118/119]

BTRFS_SETGET_FUNCS ( dev_replace_cursor_left  ,
struct btrfs_dev_replace_item  ,
cursor_left  ,
64   
)

◆ BTRFS_SETGET_FUNCS() [119/119]

BTRFS_SETGET_FUNCS ( dev_replace_cursor_right  ,
struct btrfs_dev_replace_item  ,
cursor_right  ,
64   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [1/6]

BTRFS_SETGET_HEADER_FUNCS ( header_bytenr  ,
struct btrfs_header  ,
bytenr  ,
64   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [2/6]

BTRFS_SETGET_HEADER_FUNCS ( header_generation  ,
struct btrfs_header  ,
generation  ,
64   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [3/6]

BTRFS_SETGET_HEADER_FUNCS ( header_owner  ,
struct btrfs_header  ,
owner  ,
64   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [4/6]

BTRFS_SETGET_HEADER_FUNCS ( header_nritems  ,
struct btrfs_header  ,
nritems  ,
32   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [5/6]

BTRFS_SETGET_HEADER_FUNCS ( header_flags  ,
struct btrfs_header  ,
flags  ,
64   
)

◆ BTRFS_SETGET_HEADER_FUNCS() [6/6]

BTRFS_SETGET_HEADER_FUNCS ( header_level  ,
struct btrfs_header  ,
level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [1/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_type  ,
struct btrfs_dev_item  ,
type  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [2/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_total_bytes  ,
struct btrfs_dev_item  ,
total_bytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [3/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_bytes_used  ,
struct btrfs_dev_item  ,
bytes_used  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [4/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_io_align  ,
struct btrfs_dev_item  ,
io_align  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [5/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_io_width  ,
struct btrfs_dev_item  ,
io_width  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [6/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_sector_size  ,
struct btrfs_dev_item  ,
sector_size  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [7/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_id  ,
struct btrfs_dev_item  ,
devid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [8/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_group  ,
struct btrfs_dev_item  ,
dev_group  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [9/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_seek_speed  ,
struct btrfs_dev_item  ,
seek_speed  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [10/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_bandwidth  ,
struct btrfs_dev_item  ,
bandwidth  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [11/135]

BTRFS_SETGET_STACK_FUNCS ( stack_device_generation  ,
struct btrfs_dev_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [12/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_length  ,
struct btrfs_chunk  ,
length  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [13/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_owner  ,
struct btrfs_chunk  ,
owner  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [14/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_stripe_len  ,
struct btrfs_chunk  ,
stripe_len  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [15/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_io_align  ,
struct btrfs_chunk  ,
io_align  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [16/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_io_width  ,
struct btrfs_chunk  ,
io_width  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [17/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_sector_size  ,
struct btrfs_chunk  ,
sector_size  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [18/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_type  ,
struct btrfs_chunk  ,
type  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [19/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_num_stripes  ,
struct btrfs_chunk  ,
num_stripes  ,
16   
)

◆ BTRFS_SETGET_STACK_FUNCS() [20/135]

BTRFS_SETGET_STACK_FUNCS ( stack_chunk_sub_stripes  ,
struct btrfs_chunk  ,
sub_stripes  ,
16   
)

◆ BTRFS_SETGET_STACK_FUNCS() [21/135]

BTRFS_SETGET_STACK_FUNCS ( stack_stripe_devid  ,
struct btrfs_stripe  ,
devid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [22/135]

BTRFS_SETGET_STACK_FUNCS ( stack_stripe_offset  ,
struct btrfs_stripe  ,
offset  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [23/135]

BTRFS_SETGET_STACK_FUNCS ( block_group_used  ,
struct btrfs_block_group_item  ,
used  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [24/135]

BTRFS_SETGET_STACK_FUNCS ( block_group_chunk_objectid  ,
struct btrfs_block_group_item  ,
chunk_objectid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [25/135]

BTRFS_SETGET_STACK_FUNCS ( block_group_flags  ,
struct btrfs_block_group_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [26/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_generation  ,
struct btrfs_inode_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [27/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_sequence  ,
struct btrfs_inode_item  ,
sequence  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [28/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_transid  ,
struct btrfs_inode_item  ,
transid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [29/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_size  ,
struct btrfs_inode_item  ,
size  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [30/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_nbytes  ,
struct btrfs_inode_item  ,
nbytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [31/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_block_group  ,
struct btrfs_inode_item  ,
block_group  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [32/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_nlink  ,
struct btrfs_inode_item  ,
nlink  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [33/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_uid  ,
struct btrfs_inode_item  ,
uid  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [34/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_gid  ,
struct btrfs_inode_item  ,
gid  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [35/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_mode  ,
struct btrfs_inode_item  ,
mode  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [36/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_rdev  ,
struct btrfs_inode_item  ,
rdev  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [37/135]

BTRFS_SETGET_STACK_FUNCS ( stack_inode_flags  ,
struct btrfs_inode_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [38/135]

BTRFS_SETGET_STACK_FUNCS ( stack_timespec_sec  ,
struct btrfs_timespec  ,
sec  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [39/135]

BTRFS_SETGET_STACK_FUNCS ( stack_timespec_nsec  ,
struct btrfs_timespec  ,
nsec  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [40/135]

BTRFS_SETGET_STACK_FUNCS ( stack_key_blockptr  ,
struct btrfs_key_ptr  ,
blockptr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [41/135]

BTRFS_SETGET_STACK_FUNCS ( stack_key_generation  ,
struct btrfs_key_ptr  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [42/135]

BTRFS_SETGET_STACK_FUNCS ( stack_item_offset  ,
struct btrfs_item  ,
offset  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [43/135]

BTRFS_SETGET_STACK_FUNCS ( stack_item_size  ,
struct btrfs_item  ,
size  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [44/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dir_type  ,
struct btrfs_dir_item  ,
type  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [45/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dir_data_len  ,
struct btrfs_dir_item  ,
data_len  ,
16   
)

◆ BTRFS_SETGET_STACK_FUNCS() [46/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dir_name_len  ,
struct btrfs_dir_item  ,
name_len  ,
16   
)

◆ BTRFS_SETGET_STACK_FUNCS() [47/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dir_transid  ,
struct btrfs_dir_item  ,
transid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [48/135]

BTRFS_SETGET_STACK_FUNCS ( disk_key_objectid  ,
struct btrfs_disk_key  ,
objectid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [49/135]

BTRFS_SETGET_STACK_FUNCS ( disk_key_offset  ,
struct btrfs_disk_key  ,
offset  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [50/135]

BTRFS_SETGET_STACK_FUNCS ( disk_key_type  ,
struct btrfs_disk_key  ,
type  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [51/135]

BTRFS_SETGET_STACK_FUNCS ( stack_header_generation  ,
struct btrfs_header  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [52/135]

BTRFS_SETGET_STACK_FUNCS ( stack_header_owner  ,
struct btrfs_header  ,
owner  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [53/135]

BTRFS_SETGET_STACK_FUNCS ( stack_header_nritems  ,
struct btrfs_header  ,
nritems  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [54/135]

BTRFS_SETGET_STACK_FUNCS ( stack_header_bytenr  ,
struct btrfs_header  ,
bytenr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [55/135]

BTRFS_SETGET_STACK_FUNCS ( root_generation  ,
struct btrfs_root_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [56/135]

BTRFS_SETGET_STACK_FUNCS ( root_bytenr  ,
struct btrfs_root_item  ,
bytenr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [57/135]

BTRFS_SETGET_STACK_FUNCS ( root_level  ,
struct btrfs_root_item  ,
level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [58/135]

BTRFS_SETGET_STACK_FUNCS ( root_dirid  ,
struct btrfs_root_item  ,
root_dirid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [59/135]

BTRFS_SETGET_STACK_FUNCS ( root_refs  ,
struct btrfs_root_item  ,
refs  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [60/135]

BTRFS_SETGET_STACK_FUNCS ( root_flags  ,
struct btrfs_root_item  ,
flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [61/135]

BTRFS_SETGET_STACK_FUNCS ( root_used  ,
struct btrfs_root_item  ,
bytes_used  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [62/135]

BTRFS_SETGET_STACK_FUNCS ( root_limit  ,
struct btrfs_root_item  ,
byte_limit  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [63/135]

BTRFS_SETGET_STACK_FUNCS ( root_last_snapshot  ,
struct btrfs_root_item  ,
last_snapshot  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [64/135]

BTRFS_SETGET_STACK_FUNCS ( root_generation_v2  ,
struct btrfs_root_item  ,
generation_v2  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [65/135]

BTRFS_SETGET_STACK_FUNCS ( root_ctransid  ,
struct btrfs_root_item  ,
ctransid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [66/135]

BTRFS_SETGET_STACK_FUNCS ( root_otransid  ,
struct btrfs_root_item  ,
otransid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [67/135]

BTRFS_SETGET_STACK_FUNCS ( root_stransid  ,
struct btrfs_root_item  ,
stransid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [68/135]

BTRFS_SETGET_STACK_FUNCS ( root_rtransid  ,
struct btrfs_root_item  ,
rtransid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [69/135]

BTRFS_SETGET_STACK_FUNCS ( backup_tree_root  ,
struct btrfs_root_backup  ,
tree_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [70/135]

BTRFS_SETGET_STACK_FUNCS ( backup_tree_root_gen  ,
struct btrfs_root_backup  ,
tree_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [71/135]

BTRFS_SETGET_STACK_FUNCS ( backup_tree_root_level  ,
struct btrfs_root_backup  ,
tree_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [72/135]

BTRFS_SETGET_STACK_FUNCS ( backup_chunk_root  ,
struct btrfs_root_backup  ,
chunk_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [73/135]

BTRFS_SETGET_STACK_FUNCS ( backup_chunk_root_gen  ,
struct btrfs_root_backup  ,
chunk_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [74/135]

BTRFS_SETGET_STACK_FUNCS ( backup_chunk_root_level  ,
struct btrfs_root_backup  ,
chunk_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [75/135]

BTRFS_SETGET_STACK_FUNCS ( backup_extent_root  ,
struct btrfs_root_backup  ,
extent_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [76/135]

BTRFS_SETGET_STACK_FUNCS ( backup_extent_root_gen  ,
struct btrfs_root_backup  ,
extent_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [77/135]

BTRFS_SETGET_STACK_FUNCS ( backup_extent_root_level  ,
struct btrfs_root_backup  ,
extent_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [78/135]

BTRFS_SETGET_STACK_FUNCS ( backup_fs_root  ,
struct btrfs_root_backup  ,
fs_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [79/135]

BTRFS_SETGET_STACK_FUNCS ( backup_fs_root_gen  ,
struct btrfs_root_backup  ,
fs_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [80/135]

BTRFS_SETGET_STACK_FUNCS ( backup_fs_root_level  ,
struct btrfs_root_backup  ,
fs_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [81/135]

BTRFS_SETGET_STACK_FUNCS ( backup_dev_root  ,
struct btrfs_root_backup  ,
dev_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [82/135]

BTRFS_SETGET_STACK_FUNCS ( backup_dev_root_gen  ,
struct btrfs_root_backup  ,
dev_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [83/135]

BTRFS_SETGET_STACK_FUNCS ( backup_dev_root_level  ,
struct btrfs_root_backup  ,
dev_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [84/135]

BTRFS_SETGET_STACK_FUNCS ( backup_csum_root  ,
struct btrfs_root_backup  ,
csum_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [85/135]

BTRFS_SETGET_STACK_FUNCS ( backup_csum_root_gen  ,
struct btrfs_root_backup  ,
csum_root_gen  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [86/135]

BTRFS_SETGET_STACK_FUNCS ( backup_csum_root_level  ,
struct btrfs_root_backup  ,
csum_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [87/135]

BTRFS_SETGET_STACK_FUNCS ( backup_total_bytes  ,
struct btrfs_root_backup  ,
total_bytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [88/135]

BTRFS_SETGET_STACK_FUNCS ( backup_bytes_used  ,
struct btrfs_root_backup  ,
bytes_used  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [89/135]

BTRFS_SETGET_STACK_FUNCS ( backup_num_devices  ,
struct btrfs_root_backup  ,
num_devices  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [90/135]

BTRFS_SETGET_STACK_FUNCS ( super_bytenr  ,
struct btrfs_super_block  ,
bytenr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [91/135]

BTRFS_SETGET_STACK_FUNCS ( super_flags  ,
struct btrfs_super_block  ,
flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [92/135]

BTRFS_SETGET_STACK_FUNCS ( super_generation  ,
struct btrfs_super_block  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [93/135]

BTRFS_SETGET_STACK_FUNCS ( super_root  ,
struct btrfs_super_block  ,
root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [94/135]

BTRFS_SETGET_STACK_FUNCS ( super_sys_array_size  ,
struct btrfs_super_block  ,
sys_chunk_array_size  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [95/135]

BTRFS_SETGET_STACK_FUNCS ( super_chunk_root_generation  ,
struct btrfs_super_block  ,
chunk_root_generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [96/135]

BTRFS_SETGET_STACK_FUNCS ( super_root_level  ,
struct btrfs_super_block  ,
root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [97/135]

BTRFS_SETGET_STACK_FUNCS ( super_chunk_root  ,
struct btrfs_super_block  ,
chunk_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [98/135]

BTRFS_SETGET_STACK_FUNCS ( super_chunk_root_level  ,
struct btrfs_super_block  ,
chunk_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [99/135]

BTRFS_SETGET_STACK_FUNCS ( super_log_root  ,
struct btrfs_super_block  ,
log_root  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [100/135]

BTRFS_SETGET_STACK_FUNCS ( super_log_root_transid  ,
struct btrfs_super_block  ,
log_root_transid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [101/135]

BTRFS_SETGET_STACK_FUNCS ( super_log_root_level  ,
struct btrfs_super_block  ,
log_root_level  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [102/135]

BTRFS_SETGET_STACK_FUNCS ( super_total_bytes  ,
struct btrfs_super_block  ,
total_bytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [103/135]

BTRFS_SETGET_STACK_FUNCS ( super_bytes_used  ,
struct btrfs_super_block  ,
bytes_used  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [104/135]

BTRFS_SETGET_STACK_FUNCS ( super_sectorsize  ,
struct btrfs_super_block  ,
sectorsize  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [105/135]

BTRFS_SETGET_STACK_FUNCS ( super_nodesize  ,
struct btrfs_super_block  ,
nodesize  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [106/135]

BTRFS_SETGET_STACK_FUNCS ( super_stripesize  ,
struct btrfs_super_block  ,
stripesize  ,
32   
)

◆ BTRFS_SETGET_STACK_FUNCS() [107/135]

BTRFS_SETGET_STACK_FUNCS ( super_root_dir  ,
struct btrfs_super_block  ,
root_dir_objectid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [108/135]

BTRFS_SETGET_STACK_FUNCS ( super_num_devices  ,
struct btrfs_super_block  ,
num_devices  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [109/135]

BTRFS_SETGET_STACK_FUNCS ( super_compat_flags  ,
struct btrfs_super_block  ,
compat_flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [110/135]

BTRFS_SETGET_STACK_FUNCS ( super_compat_ro_flags  ,
struct btrfs_super_block  ,
compat_ro_flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [111/135]

BTRFS_SETGET_STACK_FUNCS ( super_incompat_flags  ,
struct btrfs_super_block  ,
incompat_flags  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [112/135]

BTRFS_SETGET_STACK_FUNCS ( super_csum_type  ,
struct btrfs_super_block  ,
csum_type  ,
16   
)

◆ BTRFS_SETGET_STACK_FUNCS() [113/135]

BTRFS_SETGET_STACK_FUNCS ( super_cache_generation  ,
struct btrfs_super_block  ,
cache_generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [114/135]

BTRFS_SETGET_STACK_FUNCS ( super_magic  ,
struct btrfs_super_block  ,
magic  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [115/135]

BTRFS_SETGET_STACK_FUNCS ( super_uuid_tree_generation  ,
struct btrfs_super_block  ,
uuid_tree_generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [116/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_disk_bytenr  ,
struct btrfs_file_extent_item  ,
disk_bytenr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [117/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_offset  ,
struct btrfs_file_extent_item  ,
offset  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [118/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_generation  ,
struct btrfs_file_extent_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [119/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_num_bytes  ,
struct btrfs_file_extent_item  ,
num_bytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [120/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_disk_num_bytes  ,
struct btrfs_file_extent_item  ,
disk_num_bytes  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [121/135]

BTRFS_SETGET_STACK_FUNCS ( stack_file_extent_compression  ,
struct btrfs_file_extent_item  ,
compression  ,
 
)

◆ BTRFS_SETGET_STACK_FUNCS() [122/135]

BTRFS_SETGET_STACK_FUNCS ( stack_qgroup_info_generation  ,
struct btrfs_qgroup_info_item  ,
generation  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [123/135]

BTRFS_SETGET_STACK_FUNCS ( stack_qgroup_info_rfer  ,
struct btrfs_qgroup_info_item  ,
rfer  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [124/135]

BTRFS_SETGET_STACK_FUNCS ( stack_qgroup_info_rfer_cmpr  ,
struct btrfs_qgroup_info_item  ,
rfer_cmpr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [125/135]

BTRFS_SETGET_STACK_FUNCS ( stack_qgroup_info_excl  ,
struct btrfs_qgroup_info_item  ,
excl  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [126/135]

BTRFS_SETGET_STACK_FUNCS ( stack_qgroup_info_excl_cmpr  ,
struct btrfs_qgroup_info_item  ,
excl_cmpr  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [127/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_src_devid  ,
struct btrfs_dev_replace_item  ,
src_devid  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [128/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_cont_reading_from_srcdev_mode  ,
struct btrfs_dev_replace_item  ,
cont_reading_from_srcdev_mode  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [129/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_replace_state  ,
struct btrfs_dev_replace_item  ,
replace_state  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [130/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_time_started  ,
struct btrfs_dev_replace_item  ,
time_started  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [131/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_time_stopped  ,
struct btrfs_dev_replace_item  ,
time_stopped  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [132/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_num_write_errors  ,
struct btrfs_dev_replace_item  ,
num_write_errors  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [133/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_num_uncorrectable_read_errors  ,
struct btrfs_dev_replace_item  ,
num_uncorrectable_read_errors  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [134/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_cursor_left  ,
struct btrfs_dev_replace_item  ,
cursor_left  ,
64   
)

◆ BTRFS_SETGET_STACK_FUNCS() [135/135]

BTRFS_SETGET_STACK_FUNCS ( stack_dev_replace_cursor_right  ,
struct btrfs_dev_replace_item  ,
cursor_right  ,
64   
)

◆ btrfs_setup_space_cache()

int btrfs_setup_space_cache ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_should_throttle_delayed_refs()

int btrfs_should_throttle_delayed_refs ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_split_item()

int btrfs_split_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const struct btrfs_key *  new_key,
unsigned long  split_offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_start_delalloc_inodes()

int btrfs_start_delalloc_inodes ( struct btrfs_root root,
int  delay_iput 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_start_delalloc_roots()

int btrfs_start_delalloc_roots ( struct btrfs_fs_info fs_info,
int  delay_iput,
int  nr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_start_dirty_block_groups()

int btrfs_start_dirty_block_groups ( struct btrfs_trans_handle trans)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_start_trans_remove_block_group()

struct btrfs_trans_handle* btrfs_start_trans_remove_block_group ( struct btrfs_fs_info fs_info,
const u64  chunk_offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_start_write_no_snapshotting()

int btrfs_start_write_no_snapshotting ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_stripe_dev_uuid()

static char* btrfs_stripe_dev_uuid ( struct btrfs_stripe *  s)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_stripe_dev_uuid_nr()

static char* btrfs_stripe_dev_uuid_nr ( struct btrfs_chunk *  c,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_stripe_devid_nr()

static u64 btrfs_stripe_devid_nr ( struct extent_buffer eb,
struct btrfs_chunk *  c,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_stripe_nr()

static struct btrfs_stripe* btrfs_stripe_nr ( struct btrfs_chunk *  c,
int  nr 
)
static
Here is the caller graph for this function:

◆ btrfs_stripe_offset_nr()

static u64 btrfs_stripe_offset_nr ( struct extent_buffer eb,
struct btrfs_chunk *  c,
int  nr 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_subvolume_release_metadata()

void btrfs_subvolume_release_metadata ( struct btrfs_fs_info fs_info,
struct btrfs_block_rsv rsv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_subvolume_reserve_metadata()

int btrfs_subvolume_reserve_metadata ( struct btrfs_root root,
struct btrfs_block_rsv rsv,
int  nitems,
u64 *  qgroup_reserved,
bool  use_global_rsv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_super_csum_size()

static int btrfs_super_csum_size ( const struct btrfs_super_block s)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_sync_file()

int btrfs_sync_file ( struct file *  file,
loff_t  start,
loff_t  end,
int  datasync 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_sync_fs()

int btrfs_sync_fs ( struct super_block sb,
int  wait 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_sysfs_add_mounted()

int btrfs_sysfs_add_mounted ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_sysfs_remove_mounted()

void btrfs_sysfs_remove_mounted ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_system_alloc_profile()

u64 btrfs_system_alloc_profile ( struct btrfs_fs_info fs_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_trans_release_chunk_metadata()

void btrfs_trans_release_chunk_metadata ( struct btrfs_trans_handle trans)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_tree_block_key()

static void btrfs_tree_block_key ( struct extent_buffer eb,
struct btrfs_tree_block_info *  item,
struct btrfs_disk_key *  key 
)
inlinestatic
Here is the caller graph for this function:

◆ btrfs_trim_fs()

int btrfs_trim_fs ( struct btrfs_fs_info fs_info,
struct fstrim_range *  range 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_truncate_block()

int btrfs_truncate_block ( struct inode inode,
loff_t  from,
loff_t  len,
int  front 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_truncate_inode_items()

int btrfs_truncate_inode_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
u64  new_size,
u32  min_type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_truncate_item()

void btrfs_truncate_item ( struct btrfs_fs_info fs_info,
struct btrfs_path path,
u32  new_size,
int  from_end 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_unlink_inode()

int btrfs_unlink_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_inode dir,
struct btrfs_inode inode,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_unlink_subvol()

int btrfs_unlink_subvol ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode dir,
u64  objectid,
const char *  name,
int  name_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_unlock_up_safe()

void btrfs_unlock_up_safe ( struct btrfs_path p,
int  level 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_iflags()

void btrfs_update_iflags ( struct inode inode)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_inode()

int btrfs_update_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_inode_fallback()

int btrfs_update_inode_fallback ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_reloc_root()

int btrfs_update_reloc_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_root()

int __must_check btrfs_update_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key *  key,
struct btrfs_root_item *  item 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_update_root_times()

void btrfs_update_root_times ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)
Here is the caller graph for this function:

◆ btrfs_uuid_tree_add()

int btrfs_uuid_tree_add ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u8 *  uuid,
u8  type,
u64  subid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_uuid_tree_iterate()

int btrfs_uuid_tree_iterate ( struct btrfs_fs_info fs_info,
int(*)(struct btrfs_fs_info *, u8 *, u8, u64)  check_func 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_uuid_tree_rem()

int btrfs_uuid_tree_rem ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u8 *  uuid,
u8  type,
u64  subid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_wait_and_free_delalloc_work()

void btrfs_wait_and_free_delalloc_work ( struct btrfs_delalloc_work work)
Here is the caller graph for this function:

◆ btrfs_wait_block_group_reservations()

void btrfs_wait_block_group_reservations ( struct btrfs_block_group_cache bg)
Here is the caller graph for this function:

◆ btrfs_wait_for_snapshot_creation()

void btrfs_wait_for_snapshot_creation ( struct btrfs_root root)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_wait_nocow_writers()

void btrfs_wait_nocow_writers ( struct btrfs_block_group_cache bg)
Here is the caller graph for this function:

◆ btrfs_write_dirty_block_groups()

int btrfs_write_dirty_block_groups ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btrfs_write_inode()

int btrfs_write_inode ( struct inode inode,
struct writeback_control *  wbc 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ can_nocow_extent()

noinline int can_nocow_extent ( struct inode inode,
u64  offset,
u64 *  len,
u64 *  orig_start,
u64 *  orig_block_len,
u64 *  ram_bytes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_system_chunk()

void check_system_chunk ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
const u64  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ count_max_extents()

static u32 count_max_extents ( u64  size)
inlinestatic
Here is the caller graph for this function:

◆ free_fs_info()

static void free_fs_info ( struct btrfs_fs_info fs_info)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_fstree()

static int is_fstree ( u64  rootid)
inlinestatic
Here is the caller graph for this function:

◆ leaf_data_end()

static unsigned int leaf_data_end ( const struct btrfs_fs_info fs_info,
const struct extent_buffer leaf 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_items_for_insert()

void setup_items_for_insert ( struct btrfs_root root,
struct btrfs_path path,
const struct btrfs_key *  cpu_key,
u32 *  data_size,
u32  total_data,
u32  total_size,
int  nr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_ioctl_balance_args()

void update_ioctl_balance_args ( struct btrfs_fs_info fs_info,
int  lock,
struct btrfs_ioctl_balance_args *  bargs 
)
Here is the caller graph for this function:

Variable Documentation

◆ __attribute__

enum { ... } __attribute__

◆ __unused_leafsize

__le32 __unused_leafsize

◆ blockptr

__le64 blockptr

◆ btrfs_bit_radix_cachep

struct kmem_cache* btrfs_bit_radix_cachep

◆ btrfs_csum_sizes

const int btrfs_csum_sizes[] = { 4 }
static

◆ btrfs_dentry_operations

const struct dentry_operations btrfs_dentry_operations

◆ btrfs_file_operations

const struct file_operations btrfs_file_operations

◆ btrfs_free_space_cachep

struct kmem_cache* btrfs_free_space_cachep

◆ btrfs_path_cachep

struct kmem_cache* btrfs_path_cachep

◆ btrfs_trans_handle_cachep

struct kmem_cache* btrfs_trans_handle_cachep

◆ bytenr

__le64 bytenr

◆ bytes_used

__le64 bytes_used

◆ cache_generation

__le64 cache_generation

◆ chunk_root

__le64 chunk_root

◆ chunk_root_gen

__le64 chunk_root_gen

◆ chunk_root_generation

__le64 chunk_root_generation

◆ chunk_root_level

u8 chunk_root_level

◆ chunk_tree_uuid

u8 chunk_tree_uuid[BTRFS_UUID_SIZE]

◆ compat_flags

__le64 compat_flags

◆ compat_ro_flags

__le64 compat_ro_flags

◆ csum

u8 csum

◆ csum_root

__le64 csum_root

◆ csum_root_gen

__le64 csum_root_gen

◆ csum_root_level

u8 csum_root_level

◆ csum_type

__le16 csum_type

◆ dev_item

struct btrfs_dev_item dev_item

◆ dev_root

__le64 dev_root

◆ dev_root_gen

__le64 dev_root_gen

◆ dev_root_level

u8 dev_root_level

◆ errno

const char unsigned int int errno

◆ extent_root

__le64 extent_root

◆ extent_root_gen

__le64 extent_root_gen

◆ extent_root_level

u8 extent_root_level

◆ flags

◆ fmt

const char unsigned int int const char* fmt

◆ fs_root

__le64 fs_root

◆ fs_root_gen

__le64 fs_root_gen

◆ fs_root_level

u8 fs_root_level

◆ fsid

u8 fsid

◆ function

const char* function

◆ generation

__le64 generation

◆ header

struct btrfs_header header

◆ incompat_flags

__le64 incompat_flags

◆ items

struct btrfs_item items[]

◆ key

__u8 key

◆ label

char label[BTRFS_LABEL_SIZE]

◆ level

u8 level

◆ line

const char unsigned int line

◆ log_root

__le64 log_root

◆ log_root_level

u8 log_root_level

◆ log_root_transid

__le64 log_root_transid

◆ magic

__le64 magic

◆ nodesize

__le32 nodesize

◆ nritems

__le32 nritems

◆ num_devices

__le64 num_devices

◆ offset

jint32_t offset

◆ owner

__le64 owner

◆ ptrs

struct btrfs_key_ptr ptrs[]

◆ reserved

le16 reserved

◆ root

__le64 root

◆ root_dir_objectid

__le64 root_dir_objectid

◆ root_level

u8 root_level

◆ sectorsize

__le32 sectorsize

◆ size

__le16 size

◆ stripesize

__le32 stripesize

◆ super_roots

◆ sys_chunk_array

u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE]

◆ sys_chunk_array_size

__le32 sys_chunk_array_size

◆ total_bytes

__le64 total_bytes

◆ tree_root

__le64 tree_root

◆ tree_root_gen

__le64 tree_root_gen

◆ tree_root_level

u8 tree_root_level

◆ unused_64

__le64 unused_64[4]

◆ unused_8

u8 unused_8[10]

◆ uuid_tree_generation

__le64 uuid_tree_generation